From dd35de74344bc1dad410ed21fedd14671ab57aff Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 8 Jan 2010 18:50:39 +0000 Subject: Add --input-type and --output-type to elfedit binutils/ 2010-01-08 H.J. Lu * 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 * binutils-all/elfedit-2.d: New. * binutils-all/elfedit.exp: Run elfedit-2. --- binutils/testsuite/binutils-all/elfedit-2.d | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 binutils/testsuite/binutils-all/elfedit-2.d (limited to 'binutils/testsuite/binutils-all/elfedit-2.d') 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\) +#... -- cgit v1.1