This is the mail archive of the
mailing list for the GCC project.
Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- To: Marius Kjeldahl <marius at ace dot funcom dot com>
- Subject: Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 25 Feb 1998 23:41:12 -0700
- cc: egcs at cygnus dot com, marius at funcom dot com
- Reply-To: law at cygnus dot com
In message <email@example.com>you write:
> >>>>> "Jeffrey" == Jeffrey A Law <firstname.lastname@example.org> writes:
> Jeffrey> What assembler are you using? Do you have a testcase?
> as -v yields:
> GNU assembler version 970731 (i586-linux), using BFD version
> Unfortunately, I have not been able to make a test case for this error
> yet. However, when trying I have come across another test that seem to
> indicate that there is something wrong with PIC and iostream, like the
> following example shows (which may or may not be related to the
> problem I am experiencing in the applictation I am porting):
> An example:
> // test3.cpp
> #include <iostream.h>
> int testfunc ()
> cout << "Hi!\n";
> return 0;
> g++ -c test3.cpp -o test3.o runs fine.
> g++ -fPIC test3.cpp -o test3.o gives me:
> test3.cpp: In function `int testfunc()':
> test3.cpp:7: Internal compiler error.
> test3.cpp:7: Please submit a full bug report to `email@example.com'.
I've just checked in a fix for this bug.