Adding new section to program headers
Bahadir Balban
bahadir@l4dev.org
Wed Sep 16 08:31:00 GMT 2009
Hi,
I have created custom sections in my linker script such as .img.0 .img.1
and so on.
These are loadable sections, but since they are non-standard, they don't
seem to make it to program header table like the standard .data .text
sections.
I see in ld manual that I can define program headers with the PHDRS
directive. However, if I define that, I need to re-define standard
sections in it as well.
Is there a shorter way to just mark those custom sections in the script
so that they make it to program header table?
Thanks,
--
Bahadir Balban
More information about the Binutils
mailing list