This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add updelfhdr


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.

Attachment: updelfhdr-1.patch.bz2
Description: BZip2 compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]