[Bug sanitizer/64234] Statically sanitized executable does not export ASan symbols
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 9 10:02:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64234
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think we can only recommend not to do that, or suggest users to consider
-Wl,-E. The linker automatically makes symbols mentioned in dependent
libraries exported from binaries, but e.g. implying -Wl,-E from -static-libasan
is IMNSHO undesirable, it doesn't make just the selected few symbols dynamic,
but all, and that really should be users decision whether it is desirable or
not.
More information about the Gcc-bugs
mailing list