This is the mail archive of the gcc@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]

Re: Error during linking with gcc-2.95.2 and AIX 4.3.2


>>>>> Witteveen Wolfgang writes:

Wolfgang> I tried to link some libraries to an executeable with gcc-2.95.2 with a
Wolfgang> PPC and AIX 4.3.2.

Wolfgang> It always ends up with following error message:

Wolfgang> (ld): save 1L.
Wolfgang> ld: 0711-781 ERROR: TOC overflow. TOC size: 93008		Maximum
Wolfgang> size: 65536
Wolfgang> SAVE: The return code is 12.
Wolfgang> collect2: ld returned 12 exit status

Wolfgang> The gcc installation itself was clean and successful.

Wolfgang> I tried all the mentioned flags in the documentation (-mfull-toc
Wolfgang> -mno-fp-in-toc -mno-sum-in-toc -mminimal-toc) but the error message is
Wolfgang> always exact the same (even the used TOC size).

	Presumably the library itself is occupying most of the TOC.  You
either can recompile the library with -mminimal-toc or use the -bbigtoc
(-Wl,-bbigtoc for GCC) option as described in the AIX linker
documentation which you should read in addition to the GCC documentation.

David

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