bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "No room for program headers" strikes again


From: Stelios Xanthakis
Subject: Re: "No room for program headers" strikes again
Date: Wed, 13 Apr 2005 18:26:03 +0300 (EET DST)


Temporarily I solved the problem by compiling some
object files at -O1 or -Os.  But this will explode again
later.

Now, maybe a linker script will be better than one more
dependancy for the users. I'm just wondering why does it
hit the ld limits. Where the limits low in that version
or does the code generator make too much of something.


Thanks,

Stelios



On Wed, 13 Apr 2005, Nick Clifton wrote:

Hi Stelios,

Sorry.  It's a suse 8.1 (quite old) with gcc 3.4-core compiled
from source, at x86.  ld --version gives
    2.12.90.0.15 20020717 (SuSE)

The code I'm trying to compile is made with a code generator
and it's indeed rather huge.  It has thousands of functions
in one huge file,several sections and with debugging data
the final file is about 2MB. So it could indeed require much
space for "program headers". The question is, custom ld
script the only solution?

Not necessarily. You are using a very old version of the linker. If you update to the current release (v2.15) or even the current development sources, you may well find that the problem is resolved.

Cheers
 Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]