Fix some strip test fails on nds32 and pru
authorAlan Modra <amodra@gmail.com>
Mon, 9 Apr 2018 23:44:29 +0000 (09:14 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Apr 2018 00:11:25 +0000 (09:41 +0930)
Fixes these fails:
nds32le-linux  +FAIL: binutils-all/strip-14
nds32le-linux  +FAIL: binutils-all/strip-15
pru-elf  +FAIL: binutils-all/strip-14
pru-elf  +FAIL: binutils-all/strip-15

strip-13 fails on nds32 due to an assertion failure and out of bounds
access to nds32_elf_howto_table.

* testsuite/binutils-all/objcopy.exp (strip-14, strip-15): Choose
reloc=11 for pru and reloc=50 for nds32.
* testsuite/binutils-all/strip-15.d: Accept 0xb reloc number.

binutils/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp
binutils/testsuite/binutils-all/strip-15.d

index c7a631aa821bececd72bfa470e94dcc112dd093f..07356e25014d7d911090ce3b7e99c4c62e5880df 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-10  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/binutils-all/objcopy.exp (strip-14, strip-15): Choose
+       reloc=11 for pru and reloc=50 for nds32.
+       * testsuite/binutils-all/strip-15.d: Accept 0xb reloc number.
+
 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
 
        * testsuite/binutils-all/strip-15.d: New test.
index 366a4a34f8994ff69b7548eb45147cdf64efbd28..b308fd7e37f30abbb7f7280a41d8e34901c52876 100644 (file)
@@ -1113,8 +1113,11 @@ if [is_elf_format] {
        set reloc 259
     } elseif { [istarget "ia64*-*"] \
               || [istarget "m32r*-*"] \
+              || [istarget "nds32*-*"] \
               || [istarget "v850*-*"] } {
        set reloc 50
+    } elseif { [istarget "pru-*"] } {
+       set reloc 11
     } else {
        set reloc 1
     }
index 03d7d1a78d6f2a5bfda8d572eaa581056063fd73..f649287cf597ccd99135c02ce44062b1db996e8b 100644 (file)
@@ -4,5 +4,5 @@
 
 Relocation section '\.rela?\.text' at offset .* contains 2 entries:
  *Offset * Info * Type * Sym\. *Value * Sym\. *Name(?: * \+ * Addend)?
-0+00 * 0+0(?:1|32|103) * R_[^ ]* *(?: * 55aa)?
+0+00 * 0+0(?:1|b|32|103) * R_[^ ]* *(?: * 55aa)?
 #pass
This page took 0.027881 seconds and 4 git commands to generate.