------- Comment #7 from hjl dot tools at gmail dot com 2009-01-29 01:13 ------- Linker does complain:
[...@gnu-6 gcc]$ cat /tmp/i.i inline void foo (); int main () { foo (); return 0; } [...@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 [...@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