Add --input-osabi and --output-osabi to elfedit.
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Aug 2010 16:25:53 +0000 (16:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Aug 2010 16:25:53 +0000 (16:25 +0000)
commitd0514c4914c5e635501836e54ea92b0a8fed1189
treecfabd781865789eac0e9acb7726adfd61cf061ad
parent9eeefea8ddc2fa57330c8b3c0fae600481ec06a5
Add --input-osabi and --output-osabi to elfedit.

binutils/

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

* elfedit.c (input_elf_osabi): New.
(output_elf_osbi): Likewise.
(osabis): Likewise.
(elf_osabi): Likewise.
(update_elf_header): Support updating ELF OSABI.
(make_qualified_name): Break long line.
(command_line_switch): Add OPTION_INPUT_OSABI and
OPTION_OUTPUT_OSABI.
(options): Likewise.
(usage): Add --input-osabi and --output-osabi.
(main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI.

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

binutils/testsuite/

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

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

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