2009-08-03 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Aug 2009 16:22:36 +0000 (16:22 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Aug 2009 16:22:36 +0000 (16:22 +0000)
PR binutils/10492
* binutils-all/objcopy.exp: Run strip-10.

* binutils-all/strip-10.d: New.
* binutils-all/unique.s: Likewise.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp
binutils/testsuite/binutils-all/strip-10.d [new file with mode: 0644]
binutils/testsuite/binutils-all/unique.s [new file with mode: 0644]

index cd91f5284af6885f183cb7ff762cf5c29efe6a95..d8a27e732d9a7bb70f4da79dd960b3786ef07dcf 100644 (file)
@@ -1,3 +1,11 @@
+2009-08-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/10492
+       * binutils-all/objcopy.exp: Run strip-10.
+
+       * binutils-all/strip-10.d: New.
+       * binutils-all/unique.s: Likewise.
+
 2009-07-31  Daniel Gutson  <dgutson@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
 
index 9271ea6b77f0ea4650aa592fcd1e56876447d9e2..ef2e40a95c807268606a5a02d9c1bf6774c823aa 100644 (file)
@@ -851,6 +851,7 @@ if [is_elf_format] {
     run_dump_test "strip-7"
     run_dump_test "strip-8"
     run_dump_test "strip-9"
+    run_dump_test "strip-10"
 
     if { [istarget "i*86-*"] || [istarget "x86_64-*-*"] } {
        # Check to make sure we don't strip a symbol named in relocations.
diff --git a/binutils/testsuite/binutils-all/strip-10.d b/binutils/testsuite/binutils-all/strip-10.d
new file mode 100644 (file)
index 0000000..4476454
--- /dev/null
@@ -0,0 +1,8 @@
+#PROG: strip
+#source: unique.s
+#strip: -g
+#readelf: -s
+#name: strip on STB_GNU_UNIQUE
+
+#...
+[      ]+[0-9]+:[      ]+[0-9a-f]+[    ]+[0-9]+[       ]+OBJECT[        ]+UNIQUE DEFAULT[      ]+[1-9] foo
diff --git a/binutils/testsuite/binutils-all/unique.s b/binutils/testsuite/binutils-all/unique.s
new file mode 100644 (file)
index 0000000..44fb7a0
--- /dev/null
@@ -0,0 +1,4 @@
+       .data
+       .type foo,%gnu_unique_object
+foo:
+       .byte 0