Not enough room for program headers

Will Newton will.newton@imgtec.com
Mon Jun 4 12:20:00 GMT 2007


Hi all,

I'm getting the error "Not enough room for program headers" when I try
and link certain code with binutils 2.17 (targetted at a chip that isn't
yet in the mainline tree). I'm in the process of moving from 2.16.1 to
2.17.

For example:

 Section to Segment mapping:
  Segment              Sections...
  00:           LOAD:  .hash .dynsym .dynstr .rela.data .rela.got
.rela.plt .init
  01:           LOAD:  .plt .text .fini .rodata
  02:           LOAD:  .ctors .dtors .dynamic .data .got
  03:        DYNAMIC:  .dynamic

Looking at the code for get_program_header_size() it looks like it will
return 3, one segment for text, one for data and one for .dynamic.
Segments 00 and 01 seem to contain read-only text/data, segment 02 seems
to contain data and segment 03 .dynamic. I'm not sure why there is the
disitinction between segments 00 and 01. Could anyone help me to
understand this?

Thanks,
-
This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm
-



More information about the Binutils mailing list