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

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jan 29 01:13:00 GMT 2009



------- Comment #7 from hjl dot tools at gmail dot com  2009-01-29 01:13 -------
Linker does complain:

[hjl@gnu-6 gcc]$ cat /tmp/i.i
inline void foo ();

int
main ()
{
  foo ();
  return 0;
}
[hjl@gnu-6 gcc]$ gcc  /tmp/i.i  -fpie -pie 
/tmp/ccOgMGls.o: In function `main':
i.i:(.text+0xa): undefined reference to `foo'
/usr/local/bin/ld: /tmp/ccOgMGls.o: relocation R_X86_64_PC32 against undefined
symbol `foo' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
[hjl@gnu-6 gcc]$ 


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ubizjak at gmail dot com    |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013



More information about the Gcc-bugs mailing list