This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-fPIC option
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -fPIC option
- From: "Alexandre Alves" <alexandre-alves at vertel dot com>
- Date: Wed, 12 Jan 2000 17:55:32 -0800
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