------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-29 07:44 ------- This problem if it is a real issue, is not a GCC issue at all, GCC does not do dynamic loading or even the static linking.
The problem here is you don't understand elf semantics. since we know that Func1 is local to the TU and you are not compiling with -fPIC/-fPIE/-fpie/-fpic, then we call directly Func1 in main instead of going through a PLT. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30329