diff options
author | Christopher Ferris <cferris@google.com> | 2014-10-06 15:11:28 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-10-06 16:41:46 -0700 |
commit | 6869d26ad9f0e42f7b8ca0a8a331e6119759d211 (patch) | |
tree | f55f73366613064b0cebbc046649c156c68dc28d /libc/arch-x86 | |
parent | b5cba6081bc9179d3ea2aa1bfd77dd8de1c88525 (diff) | |
download | bionic-6869d26ad9f0e42f7b8ca0a8a331e6119759d211.tar.gz bionic-6869d26ad9f0e42f7b8ca0a8a331e6119759d211.tar.bz2 bionic-6869d26ad9f0e42f7b8ca0a8a331e6119759d211.zip |
Force export symbols on all x86 variants in libc.
For silvermont, the __popcountsi2 symbol does not get exported by libc.
But for atom, this symbol is exported. Since we already exported this symbol
for previous releases, it's better to just follow through and force
the export, but only for 32 bit. x86 64 bit will not export this symbol.
Bug: 17681440
(cherry picked from commit d11eac3455a059a092ceee92eda9905e1d661e94)
Change-Id: I93704c721d98d569922f606f214069bda24872ba
Diffstat (limited to 'libc/arch-x86')
-rw-r--r-- | libc/arch-x86/bionic/libgcc_compat.c | 15 | ||||
-rw-r--r-- | libc/arch-x86/x86.mk | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/libc/arch-x86/bionic/libgcc_compat.c b/libc/arch-x86/bionic/libgcc_compat.c new file mode 100644 index 000000000..c7232638f --- /dev/null +++ b/libc/arch-x86/bionic/libgcc_compat.c @@ -0,0 +1,15 @@ +/* Generated by genlibgcc_compat.py */ + +extern char __divdi3; +extern char __moddi3; +extern char __popcountsi2; +extern char __udivdi3; +extern char __umoddi3; + +void* __bionic_libgcc_compat_symbols[] = { + &__divdi3, + &__moddi3, + &__popcountsi2, + &__udivdi3, + &__umoddi3, +}; diff --git a/libc/arch-x86/x86.mk b/libc/arch-x86/x86.mk index 9f2188c2c..e73ed1da4 100644 --- a/libc/arch-x86/x86.mk +++ b/libc/arch-x86/x86.mk @@ -38,6 +38,7 @@ libc_freebsd_src_files_x86 += \ libc_bionic_src_files_x86 += \ arch-x86/bionic/__bionic_clone.S \ arch-x86/bionic/_exit_with_stack_teardown.S \ + arch-x86/bionic/libgcc_compat.c \ arch-x86/bionic/__restore_rt.S \ arch-x86/bionic/__restore.S \ arch-x86/bionic/_setjmp.S \ |