[PATCH] add all missing section flags to objcopy

Alan Modra amodra@gmail.com
Thu Jan 24 11:19:00 GMT 2013


On Thu, Jan 24, 2013 at 09:20:03AM +0100, Robert Schiele wrote:
> ---
> I was missing the option to set SEC_MERGE and SEC_STRINGS in objcopy.
> Instead of just adding those two I thought it might be better to make
> the picture complete and just add all that are currently defined.

Many of these flags are internal to BFD.  They don't have any
representation in object files.  So if a user tries to set SEC_KEEP
for example, there will be no effect on the object file and they'll
say the option is broken.  Please select only the set of flags that
actually change something in an object file.  Yes, some flags will
only work with ELF.  That's fine.  I just don't want objcopy options
that do nothing on *any* object format.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list