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] |
> When I am linking an elf executable, I would like to place some bulk > data (e.g. a zip file or some other binary file) into a section in the > final executable. How can I achieve this with ld commands and the > linker script?
I suggest you need to add this as a SEGMENT not a SECTION, because in a executable the section header table can be stripped off. You may need some mechanism to add the bulk file as a PHDR PT_LOAD entry.
Thank you, Vamsi kundeti
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |