This is the mail archive of the
mailing list for the binutils project.
Re: ld: Not enough room for program headers
- To: Franco Broi <franco at robres dot com dot au>
- Subject: Re: ld: Not enough room for program headers
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 7 Sep 2000 18:05:17 -0700
- Cc: michal at ellpspace dot math dot ualberta dot ca, binutils at sourceware dot cygnus dot com
- References: <200009080037.IAA16957@spt.com.au>
On Fri, Sep 08, 2000 at 08:37:57AM +0800, Franco Broi wrote:
> I recently bought an Alpha from the guys at HardData and encountered a problem
> with ld. Michal Jaegermann asked me to pass on my experiences to you.
> The machine arrived loaded with Northern Linux and binutils-188.8.131.52-1. When
> I tried to link my applications I got the following error message:
> /usr/bin/ld: avi_new: Not enough room for program headers (allocated 6, need 7)
> After doing a bit of research, I discovered that this is something to do
> with SIZEOF_HEADERS in the linker script, and Michal suggested I try some
> newer versions of binutils to see if the problem has been fixed.
> After trying a few version of binutils ( 184.108.40.206, 18 and 24) to no avail,
> I discovered that 220.127.116.11.22-6 worked. This has more to do with the version
> of ld I'd imagine, the latter version of binutils has ld 2.9.5, whereas all
> the others I tried have ld 2.10.90.
> I can't send a complete application that failed to link as they all link
> with our own libaries. Some smaller applications linked without any problems
> so it seems that it's the size that matters.
> Please let me know if you require any further information.
It may be a linker bug. But without a testcase, there is very little
I can do.