Not enough room for program headers

Aiqun Du aiqun_du@hotmail.com
Thu Jan 9 17:29:00 GMT 2003


Hi,

I am using GCC 3.2 (64 bit) to link several .o files with a .a library 
(containging about 120 .o modules):
gcc FileServices.o TCSW_cmd_parser.o  rtas_app.o librtas.a

And I got this error:
/opt/cross/lib/gcc-lib/powerpc64-linux/3.2/../../../../powerpc64-linux/bin/ld: 
a.out: Not enough room for program headers (allocated 6, need 7)
/opt/cross/lib/gcc-lib/powerpc64-linux/3.2/../../../../powerpc64-linux/bin/ld: 
final link failed: Bad value
collect2: ld returned 1 exit status

If I pick a single .o from the set of objects in librtas.a, create a small 
library (.a) using this .o, and link the .a with the other 3 .o in above gcc 
command, it can build and run without a problem.

Do you have any idea about this error and how to resolve it?

Thank you in advance.

Alice




_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the Gcc-help mailing list