From: H.J. Lu Date: Thu, 6 Aug 2009 16:22:36 +0000 (+0000) Subject: 2009-08-03 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c04f6ba66fc66101076f31383d8e9efff4a5df9;p=binutils-gdb.git 2009-08-03 H.J. Lu PR binutils/10492 * binutils-all/objcopy.exp: Run strip-10. * binutils-all/strip-10.d: New. * binutils-all/unique.s: Likewise. --- diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index cd91f5284af..d8a27e732d9 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2009-08-03 H.J. Lu + + 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 Daniel Jacobowitz diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 9271ea6b77f..ef2e40a95c8 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -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 index 00000000000..44764542d1c --- /dev/null +++ b/binutils/testsuite/binutils-all/strip-10.d @@ -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 index 00000000000..44fb7a09f14 --- /dev/null +++ b/binutils/testsuite/binutils-all/unique.s @@ -0,0 +1,4 @@ + .data + .type foo,%gnu_unique_object +foo: + .byte 0