Creating .note sections

Ceri Storey cez@necrofish.org.uk
Thu Apr 24 10:17:00 GMT 2003


On Thu, Apr 24, 2003 at 10:37:19AM +0100, Nick Clifton wrote:
> If you are doing this post-link time, then you might like to consider
> using "objcopy --add-section" to do the hard work for you.  Just
> create the section's contents, write them to a file, and then invoke
> objcopy.

Okay, that works, could you tell me how I would then add an equivalent
ELF segment section? Would I have to manually craft the program headers,
and use bfd_record_phdr?

Thanks again.
-- 
Ceri Storey <cez@necrofish.org.uk>



More information about the Binutils mailing list