This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/55379] -static -static-libasan pass -Bdynamic to linker
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Nov 2012 19:35:21 +0000
- Subject: [Bug driver/55379] -static -static-libasan pass -Bdynamic to linker
- Auto-submitted: auto-generated
- References: <bug-55379-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55379
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-18 19:35:21 UTC ---
(In reply to comment #3)
> Note: fully static linking is not supported by libsanitizer at all and I don't
> think it will.
> Reason: on linux asan uses "dlsym(RTLD_NEXT, ...)" and on Mac it uses
> (will soon use) function inerposition.
> Neither works for fully static binaries, afaict.
Then we should issue an error if -static is used with -faddress-sanitizer.