This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Not enough room for program headers


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


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