aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:53 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:53 +0000
commitd0514c4914c5e635501836e54ea92b0a8fed1189 (patch)
treecfabd781865789eac0e9acb7726adfd61cf061ad /binutils/testsuite/binutils-all
parent9eeefea8ddc2fa57330c8b3c0fae600481ec06a5 (diff)
downloadgdb-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/binutils-all')
-rw-r--r--binutils/testsuite/binutils-all/elfedit-3.d15
-rw-r--r--binutils/testsuite/binutils-all/elfedit.exp1
2 files changed, 16 insertions, 0 deletions
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"