[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not enough room for program headers - Help
From: |
Nick Clifton |
Subject: |
Re: Not enough room for program headers - Help |
Date: |
30 Jan 2002 16:10:40 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
Hi Walter,
> Not enough room for program headers (allocated %u, need %u)
>
> Advice is appreciated.
Check out the linker documentation (ld.texinfo). In there you will
find:
When producing an ELF output file, if the linker script
uses the SIZEOF_HEADERS builtin function, the linker must
compute the number of program headers before it has
determined all the section addresses and sizes. If the
linker later discovers that it needs additional program
headers, it will report an error "not enough room for
program headers". To avoid this error, you must avoid
using the SIZEOF_HEADERS function, or you must rework
your linker script to avoid forcing the linker to use
additional program headers, or you must define the program
headers yourself using the PHDRS command.
Cheers
Nick