egcs on AIX 4.3

Michael Meissner meissner@cygnus.com
Wed May 13 15:20:00 GMT 1998


| I successfully installed egcs-1.0.2 on an RS6000 system at AIX
| 4.3.
|
| I compiled ddd-2.2.3 and, when it got to the link command, I got
| this message:
| ld: 0711-781 ERROR: TOC overflow. TOC size: 83880	Maximum size:
| 65536
| collect2: ld returned 12 exit status
|
| Does anyone know how to fix this?

Try any of the following:

	-Wl,-bigtoc
	-mno-fp-in-toc
	-mno-sum-in-toc
	-mminimal-toc

| I have tried to compile egcs with gnu ld but I cannot get this to
| work.  The build fails the first time it tries to link using GNU
| ld.  No error message, it just doesn't output an executable file.
|
| Does anyone have any ideas on this problem?

Yes.  IBM changed the object file format for AIX 4.3 and GNU ld currently does
not understand it.



More information about the Gcc-bugs mailing list