aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-04-10 09:14:29 +0930
committerAlan Modra <amodra@gmail.com>2018-04-10 09:41:25 +0930
commitd4ae1932770d9ec76f3d0a429aab45f1cb15e964 (patch)
tree470b596b28dd5c5fd62e61f9bb2accd6292545c3 /binutils
parent6c7c5081f01c8fc04474ff858240f1c3cd900d6e (diff)
downloadgdb-d4ae1932770d9ec76f3d0a429aab45f1cb15e964.zip
gdb-d4ae1932770d9ec76f3d0a429aab45f1cb15e964.tar.gz
gdb-d4ae1932770d9ec76f3d0a429aab45f1cb15e964.tar.bz2
Fix some strip test fails on nds32 and pru
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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp3
-rw-r--r--binutils/testsuite/binutils-all/strip-15.d2
3 files changed, 10 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c7a631a..07356e2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 366a4a3..b308fd7 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -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
}
diff --git a/binutils/testsuite/binutils-all/strip-15.d b/binutils/testsuite/binutils-all/strip-15.d
index 03d7d1a..f649287 100644
--- a/binutils/testsuite/binutils-all/strip-15.d
+++ b/binutils/testsuite/binutils-all/strip-15.d
@@ -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