Need help on OVERLAY command in linker script...

Jie Zhang zhangjie@magima.com.cn
Wed Jun 30 04:49:00 GMT 2004


Hi Tao,

> I changed the name of the original first .text section, then I got overlay
> sections. But the "not enough room for program headers" problem is still
> there.

It is caused by the OVERLAY command. I used to solve this problem by 
replace SIZEOF_HEADERS with a reasonable large number. However, I think 
using PHDRS command is better for your problem. See the words about 
SIZEOF_HEADERS in the ld documentation for more information.


Regards
-- 
Jie



More information about the Binutils mailing list