This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-19980531, SunOS4 -fPIC fails on all programs now
- To: egcs-bugs at cygnus dot com
- Subject: egcs-19980531, SunOS4 -fPIC fails on all programs now
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sat, 6 Jun 1998 12:05:38 -0400 (EDT)
- Cc: rth at cygnus dot com
Snapshot: egcs-19980531
Platform: sparc-sun-sunos4.1.4
Stage1 compiler: cc
Assembler: native
Linker: native
BOOT_CFLAGS: -g -O3 -funroll-all-loops
I cannot compile even the simplest program using -fPIC any
more on SunOS4. This is what I get:
cat foo.c:
> int main()
> {
> return 0;
> }
gcc -fPIC foo.c:
> collect2: ld terminated with signal 11 [Segmentation fault], core dumped
I think ld is choking on what it finds in the ucpic/libgcc.a,
because if I compile foo.c with "-c -fPIC" and then compile foo.o
without -fPIC it works. This also appears to occur with 19980508, so
its been happening for at least a few weeks now. I'll bootstrap
19980531 with no special cflags to see if that makes a difference.
I hope this helps.
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.