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]

egcs-19980531, SunOS4 -fPIC fails on all programs now


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.


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