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.