From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31490 invoked by alias); 9 Dec 2013 12:42:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31439 invoked by uid 48); 9 Dec 2013 12:42:17 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59410] tsan tests fail with address randomization disabled Date: Mon, 09 Dec 2013 12:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg00706.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #31 from H.J. Lu --- (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.