This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Not enough room for program headers
- From: "Aiqun Du" <aiqun_du at hotmail dot com>
- To: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Thu, 09 Jan 2003 12:22:45 -0500
- Subject: Not enough room for program headers
- Bcc:
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