From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6748 invoked by alias); 5 Nov 2010 23:28:10 -0000 Received: (qmail 6736 invoked by uid 22791); 5 Nov 2010 23:28:09 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 23:28:04 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/46319] LTO plugin test failures with --with-build-config=bootstrap-lto --with-plugin-ld=ld X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: davek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 05 Nov 2010 23:28:00 -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 X-SW-Source: 2010-11/txt/msg00697.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46319 --- Comment #4 from H.J. Lu 2010-11-05 23:27:51 UTC --- -fwhopr=jobserver -fuse-linker-plugin -frandom-seed=1 miscompiled selfassign.so. It generated: [hjl@gnu-32 stage1-gcc]$ nm selfassign.so | grep plugin_init 00000000000009aa T plugin_init [hjl@gnu-32 stage1-gcc]$ 0000000000009aa : 9aa: 90 nop 9ab: 90 nop 9ac: 90 nop 9ad: 90 nop 9ae: 90 nop 9af: 90 nop Everything seems wrong. With gold as plugin linker, I got [hjl@scel-amdbar2 gcc]$ nm selfassign.so | grep plugin_init 00000000000020ac T plugin_init [hjl@scel-amdbar2 gcc]$ 00000000000020ac : 20ac: 41 57 push %r15 20ae: 41 56 push %r14 20b0: 41 55 push %r13 20b2: 41 54 push %r12 20b4: 55 push %rbp 20b5: 53 push %rbx 20b6: 48 83 ec 38 sub $0x38,%rsp 20ba: 48 89 f0 mov %rsi,%rax 20bd: 4c 8b 2f mov (%rdi),%r13 20c0: 44 8b 67 10 mov 0x10(%rdi),%r12d 20c4: 48 8b 6f 18 mov 0x18(%rdi),%rbp 20c8: 48 8d 35 11 1c 00 00 lea 0x1c11(%rip),%rsi # 3ce0