[Bug sanitizer/68650] Firefox compilation fails with Address Sanitizer (error: undefined reference to 'dlerror')
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 2 07:41:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68650
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The question is how is the binary linked.
If it uses -static-libasan or not. If it links dynamically against -lasan,
libasan.so.* should have DT_NEEDED and this shouldn't be an issue.
If it is linking static libasan.a in, then we have libsanitizer.spec for that
to handle it, which has:
*link_libasan: -lrt -lrt -lpthread -ldl -lm
Unless the binary is linked with -nostdlib or something similar, then of course
it would be responsible for handling everything itself.
More information about the Gcc-bugs
mailing list