* Not enough room for program headers
@ 2003-01-09 17:29 Aiqun Du
2003-01-09 21:14 ` Alexandre Oliva
0 siblings, 1 reply; 3+ messages in thread
From: Aiqun Du @ 2003-01-09 17:29 UTC (permalink / raw)
To: gcc, gcc-help
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Not enough room for program headers
2003-01-09 17:29 Not enough room for program headers Aiqun Du
@ 2003-01-09 21:14 ` Alexandre Oliva
0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Oliva @ 2003-01-09 21:14 UTC (permalink / raw)
To: Aiqun Du; +Cc: gcc, gcc-help
On Jan 9, 2003, "Aiqun Du" <aiqun_du@hotmail.com> wrote:
> /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)
Linker bug. Wrong mailing list.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
^ permalink raw reply [flat|nested] 3+ messages in thread
* not enough room for program headers
@ 2003-09-12 18:02 Emily Townsend
0 siblings, 0 replies; 3+ messages in thread
From: Emily Townsend @ 2003-09-12 18:02 UTC (permalink / raw)
To: gcc-help
Hello,
I'm trying to make gcc 3.3.1 on a SUSE Linux 6.2 box with a Pentium
processor. I just updated Gnu make to version 3.80. I had Gnu ld version
2.9.1, but got the error "Not enough room for program headers (allocated
6, need 7)". I poked around on the web some and decided to upgrade
binutils, and now I have GNU ld version 2.14. I'm still getting the same
error.
Does anybody have any advice for me?
:) Emily
/usr/local/i686-pc-linux-gnu/bin/ld: cc1: Not enough room for program
headers (allocated 6, need 7)
/usr/local/i686-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[2]: Leaving directory `/opt/gcc/gccobjdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/opt/gcc/gccobjdir/gcc'
make: *** [bootstrap] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-12 18:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 17:29 Not enough room for program headers Aiqun Du
2003-01-09 21:14 ` Alexandre Oliva
2003-09-12 18:02 not " Emily Townsend
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).