]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
binutils/testsuite: Enable `strip-13' test for `hppa*-*'
authorMaciej W. Rozycki <macro@mips.com>
Thu, 5 Apr 2018 12:08:35 +0000 (13:08 +0100)
committerMaciej W. Rozycki <macro@mips.com>
Thu, 5 Apr 2018 12:08:35 +0000 (13:08 +0100)
Based on relocations defined in include/elf/*.h files we have relocation
numbers: 143, 159, 214 and 215 currently not used by any of our ELF
targets.  Use 143 then instead of 241 to enable the `strip-13' test for
`hppa*-*' targets.  It has a side effect with some targets of verifying
that unused relocations whose numbers are below the respective R_*_max
value are handled correctly.

binutils/
* testsuite/binutils-all/strip-13.s: Use 143 (0x8f) rather than
241 (0xf1) for the relocation number and RELA addend.
* testsuite/binutils-all/strip-13.d: Remove `hppa*-*' from the
`not-target' list.

binutils/ChangeLog
binutils/testsuite/binutils-all/strip-13.d
binutils/testsuite/binutils-all/strip-13.s

index 0f8776cabcc49f24aa9115047e3a24594f21e7aa..23598a04c3f6ca8fb4acf8284e807e0ef6f9a566 100644 (file)
@@ -1,3 +1,10 @@
+2018-04-05  Maciej W. Rozycki  <macro@mips.com>
+
+       * testsuite/binutils-all/strip-13.s: Use 143 (0x8f) rather than
+       241 (0xf1) for the relocation number and RELA addend.
+       * testsuite/binutils-all/strip-13.d: Remove `hppa*-*' from the
+       `not-target' list.
+
 2018-04-04  John David Anglin  <danglin@gcc.gnu.org>
 
        * MAINTAINERS: Update my e-mail address.
index a34e1ebcd8055fba4479510f42feae11236abefa..48549c7aff7b00ca4fba22d44ab832896fdd4edb 100644 (file)
@@ -1,9 +1,8 @@
 #PROG: strip
 #strip: -g
 #error: .* bad value
-#not-target: arm-* d10v-* dlx-* h8300-* hppa*-* ip2k-* rx-* xgate-*
+#not-target: arm-* d10v-* dlx-* h8300-* ip2k-* rx-* xgate-*
 # The D10V, DLX and XGATE targets only support REL relocations but this test uses RELA relocations.
 # The ARM target does support both types, but defaults to REL.
-# The HPPA targets use reloc 241, which is the value this test uses as its "unknown" reloc.
 # The H8300-*, IP2K and RX targets do not complain about unrecognised relocs, unless they are actually used
 #  (which is what should really happen with the other targets...)
index 5da2426c16aff84c50aba7608725ad9b50fb046d..886c0ee6f1c4018a9ffbdfa2e2fd5e73f7109d55 100644 (file)
@@ -4,8 +4,8 @@ foo:
 
        .section .rela.text
        .dc.a    0
-       .dc.a    0x000000f1
-       .dc.a    0x000000f1
+       .dc.a    0x0000008f
+       .dc.a    0x0000008f
 
        .dc.a    0
        .dc.a    0