PATCH: Add updelfhdr

Mike Frysinger vapier@gentoo.org
Tue Jan 5 00:34:00 GMT 2010


On Monday 04 January 2010 09:57:05 H.J. Lu wrote:
> On Mon, Jan 4, 2010 at 6:47 AM, Tristan Gingold wrote:
> >> Well, we do have 2 ELF specific programs in binutils: readelf and gold.
> >>
> >> I only want to update ELF header, nothing else.  objcopy basically will
> >> rewrite the whole ELF file. Sometimes it fails, especially when the
> >> input isn't generated by the GNU linker. updelfhdr doesn't have such a
> >> problem.
> >
> > Well, that's a point or a bug ;-)
> 
> Sometimes that won't get things done :-). That is one reason why I wrote
> updelfhdr. It works on all ELF input files no matter who generated them.
> 
> I will include it in my Linux binutils if it won't be in the FSF binutils.

you could always ask drepper about adding to elfutils if you dont want to 
merge the functionality into objcopy

personally, i'd like objcopy to allow more low level poking of ELFs like 
adding/removing dynamic tags and tweaking bits in the elf header ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100105/ab3353ed/attachment.sig>


More information about the Binutils mailing list