[Bug sanitizer/59410] tsan tests fail with address randomization disabled
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 9 12:42:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410
--- Comment #31 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #29)
> It is not that easy. gold before February 2013 doesn't grok -Ttext-segment,
> you need -Ttext there instead. See
> http://gcc.gnu.org/ml/gcc-patches/2013-02/msg00777.html
> And, given that gcc can be configured to dynamically decide which of the
> linkers to use, it is a portability nightmare. So IMNSHO it is much better
> to improve libtsan to handle it correctly.
We can pass -fuse-ld=bfd to gcc driver if it is supported and
-fuse-ld=gold doesn't take -Ttext-segment.
More information about the Gcc-bugs
mailing list