collect2: ld returned 12 exit status
David Edelsohn
dje@watson.ibm.com
Thu Jul 24 17:27:00 GMT 2008
> I'm trying to compile and link a product that was already compiled and
> linked successfully before, on AIX5.3 with gcc3.4.6, but I got the
> following link err:
> "collect2: ld returned 12 exit status"
> Pls note that this happens to me only when not using the strip flag
> (-s) since I need the symbols for debugging...
> => I can link only the release version.
There are other error message that you are not reporting, but I
suspect the problem is TOC overflow. You can try compiling the program
with -mminimal-toc GCC option or adding -Wl,-bbigtoc to the link
commandline.
David
More information about the Gcc-help
mailing list