This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]