diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-08-23 16:25:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-08-23 16:25:53 +0000 |
commit | d0514c4914c5e635501836e54ea92b0a8fed1189 (patch) | |
tree | cfabd781865789eac0e9acb7726adfd61cf061ad /binutils/testsuite | |
parent | 9eeefea8ddc2fa57330c8b3c0fae600481ec06a5 (diff) | |
download | gdb-d0514c4914c5e635501836e54ea92b0a8fed1189.zip gdb-d0514c4914c5e635501836e54ea92b0a8fed1189.tar.gz gdb-d0514c4914c5e635501836e54ea92b0a8fed1189.tar.bz2 |
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.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/elfedit-3.d | 15 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/elfedit.exp | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 6066eee..9299f9e 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-08-23 H.J. Lu <hongjiu.lu@intel.com> + + * binutils-all/elfedit-3.d: New. + + * binutils-all/elfedit.exp: Run elfedit-3. + 2010-07-19 Andreas Schwab <schwab@redhat.com> * binutils-all/readelf.s: Ignore "Key to Flags" contents. diff --git a/binutils/testsuite/binutils-all/elfedit-3.d b/binutils/testsuite/binutils-all/elfedit-3.d new file mode 100644 index 0000000..c877f46 --- /dev/null +++ b/binutils/testsuite/binutils-all/elfedit-3.d @@ -0,0 +1,15 @@ +#PROG: elfedit +#elfedit: --output-osabi FenixOS +#source: empty.s +#readelf: -h +#name: Update ELF header 3 +#target: *-*-linux* + +#... +ELF Header: + Magic: 7f 45 4c 46 .* +#... + Version:[ \t]+1 \(current\) +#... + OS/ABI:[ \t]+FenixOS +#... diff --git a/binutils/testsuite/binutils-all/elfedit.exp b/binutils/testsuite/binutils-all/elfedit.exp index 23d5292..2142774 100644 --- a/binutils/testsuite/binutils-all/elfedit.exp +++ b/binutils/testsuite/binutils-all/elfedit.exp @@ -30,3 +30,4 @@ if ![is_remote host] { run_dump_test "elfedit-1" run_dump_test "elfedit-2" +run_dump_test "elfedit-3" |