This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/39013] [4.3/4.4 regression] @PLT is missing on failed inline function when -fpie is used



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]