From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29892 invoked by alias); 13 Feb 2015 11:24:12 -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 29838 invoked by uid 48); 13 Feb 2015 11:24:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65015] LTO produces randomly ordered debug information Date: Fri, 13 Feb 2015 11:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to 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: 2015-02/txt/msg01469.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65015 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #10 from Richard Biener --- Difference in readelf -a is --- x 2015-02-13 12:04:07.526383914 +0100 +++ y 2015-02-13 12:04:10.158414178 +0100 @@ -234,7 +234,7 @@ 42: 0000000000600df8 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fin 43: 0000000000400580 0 FUNC LOCAL DEFAULT 13 frame_dummy 44: 0000000000600df0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_ - 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS cc5R4C1Y.ltrans0.o + 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS ccqmAj6c.ltrans0.o 46: 00000000004005b1 11 FUNC LOCAL DEFAULT 13 helper 47: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.c 48: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c that is, somehow .symtab contains a reference to the ltrans object file name, probably because of .file "ccqmAj6c.ltrans0.o" we emit via output_file_directive. Unfortunately omitting that doesn't help. It seems that the linker itself adds those symbols!? HJ? Gold doesn't do that (thus, it works with -fuse-ld=gold).