This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Error during linking with gcc-2.95.2 and AIX 4.3.2
- To: Witteveen Wolfgang <Wolfgang dot Witteveen at ecs dot steyr dot com>
- Subject: Re: Error during linking with gcc-2.95.2 and AIX 4.3.2
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 14 Apr 2000 11:22:28 -0400
- cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
>>>>> 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