-fPIC option

Alexandre Alves alexandre-alves@vertel.com
Wed Jan 12 18:05:00 GMT 2000


Dear comunity,

When compiling a executable with the -fPIC option 
(gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
my generated file is core dumping. 

The reasons seems to be dangled code.

If I compile/link the executable without using the -fPIC it works fine
(nothing else
is changed in the env).

The executable is linked with both shared and static libraries.

Has anyone had this problem before?

Regards,
Alex


More information about the Gcc-bugs mailing list