From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18502 invoked by alias); 29 Jan 2009 00:47:49 -0000 Received: (qmail 18471 invoked by uid 48); 29 Jan 2009 00:47:37 -0000 Date: Thu, 29 Jan 2009 00:47:00 -0000 Message-ID: <20090129004737.18470.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/39013] [4.3/4.4 regression] @PLT is missing on failed inline function when -fpie is used In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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: 2009-01/txt/msg03169.txt.bz2 ------- Comment #2 from hjl dot tools at gmail dot com 2009-01-29 00:47 ------- [hjl@gnu-6 gcc]$ cat /tmp/i.i inline void foo (); void bar () { foo (); } [hjl@gnu-6 gcc]$ ./xgcc -B./ -S /tmp/i.i -m32 -fPIC [hjl@gnu-6 gcc]$ cat i.s .file "i.i" .text .globl bar .type bar, @function bar: pushl %ebp movl %esp, %ebp pushl %ebx subl $4, %esp call __i686.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx call foo@PLT addl $4, %esp popl %ebx popl %ebp ret .size bar, .-bar -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ubizjak at gmail dot com URL|http://bugs.gentoo.org/show_| |bug.cgi?id=254355 | Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 GCC build triplet|x86_64 | GCC host triplet|x86_64 | GCC target triplet|x86_86 |x86_64-linux-gnu Last reconfirmed|0000-00-00 00:00:00 |2009-01-29 00:47:37 date| | Summary|Compiler miss to add @PLT to|[4.3/4.4 regression] @PLT is |symbols when object is |missing on failed inline |compile with -fPIE -pie |function when -fpie is used Target Milestone|--- |4.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013