summaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:51 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-23 16:25:51 +0000
commit9d10bf214b6cb4812474b2b207465f82a3a07b6c (patch)
tree3c94c1515e3652cc12e4e342909c20ad978777a4 /binutils/testsuite
parent02813cd5cc8fc3e6fe02332b40374d8549b49623 (diff)
downloadbinutils-redhat-9d10bf214b6cb4812474b2b207465f82a3a07b6c.tar.gz
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/ChangeLog6
-rw-r--r--binutils/testsuite/binutils-all/elfedit-3.d15
-rw-r--r--binutils/testsuite/binutils-all/elfedit.exp1
3 files changed, 22 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 6066eee6db..9299f9e9e7 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 0000000000..c877f46ef2
--- /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 23d5292447..2142774002 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"