AIX 4.2 , with GNU ld- egcs-1.1b compile error

David Edelsohn dje@watson.ibm.com
Mon Sep 7 19:09:00 GMT 1998


>>>>> Adrian Phillips writes:

Adrian> AIX 4.2.1 (all latest fixes)
Adrian> GNU ld (binutils.2.9.1)

Adrian> configuring :
Adrian> ../egcs-1.1b/configure --with-gnu-ld --with-gnu-as

Adrian> make bootstrap gives :

Adrian> stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA -Wl,-bbigtoc -o cccp cccp.o cexp.o prefix.o \
Adrian> version.o obstack.o alloca.o    -lld
Adrian> /usr/local/powerpc-ibm-aix4.2.1.0/bin/ld: invalid BFD target `bigtoc'
Adrian> collect2: ld returned 1 exit status

Adrian> Any clues,

	Both G++ and G77 now overflow the AIX TOC.  -bbigtoc is an AIX
linker option added in AIX 4.1 that fixes up global references and solves
the overflow problem.  GNU ld for AIX is woefully out of date with respect
to AIX ld and does not support that option.  The real question is why are
you going to the trouble of configuring with --with-gnu-as and
--with-gnu-ld ?

David



More information about the Gcc mailing list