LD Error - "Not enough room for program headers"

Alex Holland alexh4912@yahoo.com
Fri Sep 14 21:24:00 GMT 2001


When linking an image for a powerpc-eabi target (gcc
version 2.95.2, ld versions 2.9.1, 2.10, 2.11, or
2.11.2), I always get a link failure with the error
message "Not enough room for program headers
(allocated 2, need 3)". The image links fine if the
sections are contiguously located. However, dozens of
attempts that I have made over the last several days
to create non-contiguous sections (or place the data
section in ROM but link it for being in RAM) have
failed. Does anyone have an ELF linker script for
doing this that works?

Thanks,
Alex

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list