This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Adding new section to program headers
- From: Bahadir Balban <bahadir at l4dev dot org>
- To: binutils at sourceware dot org
- Date: Wed, 16 Sep 2009 11:31:28 +0300
- Subject: Adding new section to program headers
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