This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add updelfhdr
On Tue, Jan 5, 2010 at 11:41 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday 05 January 2010 14:09:19 Ian Lance Taylor wrote:
>> Nick Clifton <nickc@redhat.com> writes:
>> >> My program updates files in place. It doesn't read in the whole file
>> >> into memory.
>> >
>> > Couldn't all of this be achieve via a simple script ? ?Say in perl or
>> > ruby ? ?Is there really a need for a whole new program ?
>>
>> And if there is a need for a whole new program, shouldn't it permit
>> more general manipulations of the ELF file, and thus deserve a name
>> other than updelfhdr? ?elfcopy?
>
> but it doesnt copy, it updates/changes/edits
It is easy to update bits in ELF header since it usually doesn't change
any addresses/offsets. But it is much harder to update other bits when
addresses/offsets are changed.
> elfedit ?
It works for me.
Thanks.
--
H.J.