This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-fPIC option


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]