How can I include .symtab and .strtab into .data?

Alan Modra amodra@gmail.com
Fri Aug 21 03:47:00 GMT 2015


On Thu, Aug 20, 2015 at 05:16:44PM -0700, Yuri Zilber wrote:
> How can I include content of .symtab and .strtab into .data section
> (or loadable segment) using linker script?

You can't.

> Have I use objcopy?

Sorry, objcopy won't help either.  .symtab and .strtab aren't treated
as normal sections by the BFD library.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list