[...@gnu-6 gcc]$ cat /tmp/i.ii inline void foo () {} int main () { foo (); return 0; } [...@gnu-6 gcc]$ ./xgcc -B./ -fpie /tmp/i.ii -S [...@gnu-6 gcc]$ grep call i.s | grep foo call _z3f...@plt [...@gnu-6 gcc]$
Do we need @PLT for PIE? -- Summary: C++ compiler doesn't optimize function call for PIE Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39043