diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-01-08 18:50:39 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-01-08 18:50:39 +0000 |
commit | dd35de74344bc1dad410ed21fedd14671ab57aff (patch) | |
tree | 60b02b39651e7c028cd6c7f22a5b54567a56c554 /binutils/testsuite | |
parent | 28f2482621e47a82ad59b882d17a390a6cc98734 (diff) | |
download | gdb-dd35de74344bc1dad410ed21fedd14671ab57aff.zip gdb-dd35de74344bc1dad410ed21fedd14671ab57aff.tar.gz gdb-dd35de74344bc1dad410ed21fedd14671ab57aff.tar.bz2 |
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.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/elfedit-2.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 bd066e1..4ebc7e9 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-01-08 H.J. Lu <hongjiu.lu@intel.com> + + * binutils-all/elfedit-2.d: New. + + * binutils-all/elfedit.exp: Run elfedit-2. + 2010-01-06 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11131 diff --git a/binutils/testsuite/binutils-all/elfedit-2.d b/binutils/testsuite/binutils-all/elfedit-2.d new file mode 100644 index 0000000..af07c1d --- /dev/null +++ b/binutils/testsuite/binutils-all/elfedit-2.d @@ -0,0 +1,15 @@ +#PROG: elfedit +#elfedit: --output-type exec +#source: empty.s +#readelf: -h +#name: Update ELF header 2 +#target: *-*-linux* + +#... +ELF Header: + Magic: 7f 45 4c 46 .* +#... + Version:[ \t]+1 \(current\) +#... + Type:[ \t]+EXEC \(Executable file\) +#... diff --git a/binutils/testsuite/binutils-all/elfedit.exp b/binutils/testsuite/binutils-all/elfedit.exp index d43c31a..23d5292 100644 --- a/binutils/testsuite/binutils-all/elfedit.exp +++ b/binutils/testsuite/binutils-all/elfedit.exp @@ -29,3 +29,4 @@ if ![is_remote host] { } run_dump_test "elfedit-1" +run_dump_test "elfedit-2" |