theRockLiu / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
1 stars 0 forks source link

ASan shared runtime library on Android re-exports the entire libgcc interface #388

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Like this:
  __aeabi_uidiv
and even like this:
  _Unwind_VRS_Get
  __gnu_Unwind_Restore_VFP
and a lot more.

This is causing strange problems in weird places, like libraries depending on 
libasan DSO for AEABI stuff instead of bringing their own copy, or using 
half-libgcc-half-libc++abi unwinder.

Strangely enough, -dynamic-list does not have any effect on shared library 
exports. Version script can be used for that, but it has a slightly (very 
slightly) different syntax.

Original issue reported on code.google.com by euge...@google.com on 5 May 2015 at 1:17

GoogleCodeExporter commented 9 years ago
Looks like -dynamic-list not working with shared libraries is by design.
r236551 (and a few follow-ups) link the shared runtime with a version script.

Original comment by euge...@google.com on 6 May 2015 at 8:08