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 (see section 3.8 PHDRS Command<http://www.delorie.com/gnu/docs/binutils/ld_39.html>). On Fri, Jan 4, 2013 at 5:33 AM, John Smith <horserivers@gmail.com> wrote:
Not enough room for program headers