PATCH: Add updelfhdr

H.J. Lu hongjiu.lu@intel.com
Thu Dec 17 18:47:00 GMT 2009


Hi,

I wrote a program to update ELF header.  Currently it can change
ELF machine type between L1OM and X86-64. It works on all ELF files,
including archives. I'd like to include it in binutils.  OK to install?

Thanks.


H.J.
----
binutils/

2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>

	* Makefile.am (UPDELFHDR_PROG): New.
	(bin_PROGRAMS): Add $(UPDELFHDR_PROG).
	(CFILES): Add updelfhdr.c.
	(updelfhdr_DEPENDENCIES): New.
	(updelfhdr_SOURCES): Likewise.
	(updelfhdr_LDADD): Likewise.
	* Makefile.in: Regenerated.

	* updelfhdr.c: New.

	* doc/binutils.texi: Document updelfhdr.

	* doc/Makefile.am (man_MANS): Add updelfhdr.1.
	(updelfhdr.1): New.
	* doc/Makefile.in: Regenerated.

binutils/testsuite/

2009-12-17  H.J. Lu  <hongjiu.lu@intel.com>

	* binutils-all/updelfhdr-1.d: New.
	* binutils-all/updelfhdr.exp: Likewise.

	* config/default.exp (UPDELFHDR): New. Set if it doesn't exist.
	(UPDELFHDRFLAGS): Likewise.

	* lib/utils-lib.exp (run_dump_test): Support updelfhdr.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: updelfhdr-1.patch.bz2
Type: application/x-bzip2
Size: 11694 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091217/9df1cf8d/attachment.bz2>


More information about the Binutils mailing list