aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/group-5.d3
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp6
-rw-r--r--binutils/testsuite/binutils-all/strip-2.d3
-rw-r--r--binutils/testsuite/binutils-all/strip-5.d3
-rw-r--r--binutils/testsuite/binutils-all/strip-7.d3
-rw-r--r--binutils/testsuite/binutils-all/strip-9.d3
7 files changed, 20 insertions, 6 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8c7a9e6..d8e7f49 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-20 Nelson Chu <nelson.chu1990@gmail.com>
+
+ * testsuite/binutils-all/objcopy.exp: Set the unsupported reloc number
+ from 215 to 255 for NDS32.
+
2018-09-17 H.J. Lu <hongjiu.lu@intel.com>
* objcopy.c (strip_specific_buffer): New.
diff --git a/binutils/testsuite/binutils-all/group-5.d b/binutils/testsuite/binutils-all/group-5.d
index 3c88ba9..2d8ffa1 100644
--- a/binutils/testsuite/binutils-all/group-5.d
+++ b/binutils/testsuite/binutils-all/group-5.d
@@ -12,8 +12,9 @@
#...
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG.*
#...
-COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains 2 sections:
+COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains . sections:
\[Index\] Name
\[[ 0-9]+\] .text.*
+#...
\[[ 0-9]+\] .data.*
#pass
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index df9935e..a161029 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -1098,7 +1098,11 @@ if [is_elf_format] {
set reloc_format mips64
}
# A relocation type not supported by any target
- set reloc 215
+ if { [istarget "nds32*-*"] } {
+ set reloc 255
+ } else {
+ set reloc 215
+ }
run_dump_test "strip-13" [list \
[list source strip-13${reloc_format}.s] \
[list as "${elf64} --defsym RELOC=${reloc}"]]
diff --git a/binutils/testsuite/binutils-all/strip-2.d b/binutils/testsuite/binutils-all/strip-2.d
index 9922f47..6b97de2 100644
--- a/binutils/testsuite/binutils-all/strip-2.d
+++ b/binutils/testsuite/binutils-all/strip-2.d
@@ -11,8 +11,9 @@
#...
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
#...
-COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains 2 sections:
+COMDAT group section \[[ 0-9]+\] `\.group' \[foo_group\] contains . sections:
\[Index\] Name
\[[ 0-9]+\] .text.*
+#...
\[[ 0-9]+\] .data.*
#pass
diff --git a/binutils/testsuite/binutils-all/strip-5.d b/binutils/testsuite/binutils-all/strip-5.d
index 8dd2331..cbe517c 100644
--- a/binutils/testsuite/binutils-all/strip-5.d
+++ b/binutils/testsuite/binutils-all/strip-5.d
@@ -11,8 +11,9 @@
#...
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
#...
-COMDAT group section \[[ 0-9]+\] `.group' \[.text.foo\] contains 2 sections:
+COMDAT group section \[[ 0-9]+\] `.group' \[.text.foo\] contains . sections:
\[Index\] Name
\[[ 0-9]+\] .text.*
+#...
\[[ 0-9]+\] .data.*
#pass
diff --git a/binutils/testsuite/binutils-all/strip-7.d b/binutils/testsuite/binutils-all/strip-7.d
index 791463b..d8a2ba8 100644
--- a/binutils/testsuite/binutils-all/strip-7.d
+++ b/binutils/testsuite/binutils-all/strip-7.d
@@ -11,8 +11,9 @@
#...
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
#...
-COMDAT group section \[[ 0-9]+\] `.group' \[foo3\] contains 2 sections:
+COMDAT group section \[[ 0-9]+\] `.group' \[foo3\] contains . sections:
\[Index\] Name
\[[ 0-9]+\] .text.*
+#...
\[[ 0-9]+\] .data.*
#pass
diff --git a/binutils/testsuite/binutils-all/strip-9.d b/binutils/testsuite/binutils-all/strip-9.d
index 7f07a0d..36ee7a0 100644
--- a/binutils/testsuite/binutils-all/strip-9.d
+++ b/binutils/testsuite/binutils-all/strip-9.d
@@ -11,8 +11,9 @@
#...
\[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
#...
-COMDAT group section \[[ 0-9]+\] `.group' \[foo4\] contains 2 sections:
+COMDAT group section \[[ 0-9]+\] `.group' \[foo4\] contains . sections:
\[Index\] Name
\[[ 0-9]+\] .text.*
+#...
\[[ 0-9]+\] .data.*
#pass