Add --input-type and --output-type to elfedit
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 18:50:39 +0000 (18:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 8 Jan 2010 18:50:39 +0000 (18:50 +0000)
commitdd35de74344bc1dad410ed21fedd14671ab57aff
tree60b02b39651e7c028cd6c7f22a5b54567a56c554
parent28f2482621e47a82ad59b882d17a390a6cc98734
Add --input-type and --output-type to elfedit

binutils/

2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>

* elfedit.c (input_elf_type): New.
(output_elf_type): Likewise.
(elf_type): Likewise.
(update_elf_header): Support updating ELF file type.
(command_line_switch): Add OPTION_INPUT_TYPE and
OPTION_OUTPUT_TYPE.
(options): Likewise.
(usage): Add --input-type and --output-type.
(main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE.  Check
one of --output-mach and --output-type must be specified.

* doc/binutils.texi: Document --input-type and --output-type
for elfedit.

binutils/testsuite/

2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/elfedit-2.d: New.

* binutils-all/elfedit.exp: Run elfedit-2.
binutils/ChangeLog
binutils/doc/binutils.texi
binutils/elfedit.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/elfedit-2.d [new file with mode: 0644]
binutils/testsuite/binutils-all/elfedit.exp