summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwillnewton <willnewton>2013-04-30 13:40:27 +0000
committerwillnewton <willnewton>2013-04-30 13:40:27 +0000
commitf276b87a420113f7684790c90988a194a884b35a (patch)
treedebbc95567960d091b60c25f60a1f984970c9099
parent25066f02ffc58b163b4c6716b5ed9f1aa707bd58 (diff)
downloadbinutils-redhat-f276b87a420113f7684790c90988a194a884b35a.tar.gz
ld/testsuite/ld-arm: Fix ifunc-17 failure with arm-eabi.
ld/testsuite/ChangeLog: 2013-04-30 Will Newton <will.newton@linaro.org> * ld-arm/arm-elf.exp: Use linker script for IFUNC test 17. * ld-arm/ifunc-17.dd: Update offsets for linker script. * ld-arm/ifunc-17.gd: Likewise. * ld-arm/ifunc-17.rd: Likewise.
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-arm/arm-elf.exp2
-rw-r--r--ld/testsuite/ld-arm/ifunc-17.dd22
-rw-r--r--ld/testsuite/ld-arm/ifunc-17.gd8
-rw-r--r--ld/testsuite/ld-arm/ifunc-17.rd6
5 files changed, 26 insertions, 19 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 27dae44d1c..b777c967fe 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2013-04-30 Will Newton <will.newton@linaro.org>
+
+ * ld-arm/arm-elf.exp: Use linker script for IFUNC test 17.
+ * ld-arm/ifunc-17.dd: Update offsets for linker script.
+ * ld-arm/ifunc-17.gd: Likewise.
+ * ld-arm/ifunc-17.rd: Likewise.
+
2013-04-29 Will Newton <will.newton@linaro.org>
* ld-arm/arm-elf.exp: Add IFUNC test 17.
diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp
index c488e3cba8..a6abe82878 100644
--- a/ld/testsuite/ld-arm/arm-elf.exp
+++ b/ld/testsuite/ld-arm/arm-elf.exp
@@ -451,7 +451,7 @@ set armelftests_nonacl {
{objdump {-s -j.data -j.got} ifunc-16.gd}
{readelf -r ifunc-16.rd}}
"ifunc-16"}
- {"IFUNC test 17" "" "" "" {ifunc-17.s}
+ {"IFUNC test 17" "-T ifunc-static.ld" "" "" {ifunc-17.s}
{{objdump -d ifunc-17.dd}
{objdump {-s -j.data -j.got} ifunc-17.gd}
{readelf -r ifunc-17.rd}}
diff --git a/ld/testsuite/ld-arm/ifunc-17.dd b/ld/testsuite/ld-arm/ifunc-17.dd
index f23a2490c2..ee5cd050aa 100644
--- a/ld/testsuite/ld-arm/ifunc-17.dd
+++ b/ld/testsuite/ld-arm/ifunc-17.dd
@@ -4,22 +4,22 @@
Disassembly of section \.iplt:
-00008084 <.iplt>:
+00009000 <.iplt>:
#------------------------------------------------------------------------------
#------ appfunc1's .iplt entry
#------------------------------------------------------------------------------
- 8084: e28fc600 add ip, pc, #0, 12
- 8088: e28cca08 add ip, ip, #8, 20 ; 0x8000
- 808c: e5bcf01c ldr pc, \[ip, #28\]!
+ 9000: e28fc600 add ip, pc, #0, 12
+ 9004: e28cca08 add ip, ip, #8, 20 ; 0x8000
+ 9008: e5bcf004 ldr pc, \[ip, #4\]!
Disassembly of section \.text:
-00008090 <appfunc1>:
- 8090: 46f7 mov pc, lr
+0000a000 <appfunc1>:
+ a000: 46f7 mov pc, lr
-00008092 <appfunc2>:
- 8092: 46f7 mov pc, lr
+0000a002 <appfunc2>:
+ a002: 46f7 mov pc, lr
-00008094 <_start>:
- 8094: f7ff eff6 blx 8084 <appfunc1-0xc>
- 8098: 00000010 \.word 0x00000010
+0000a004 <_start>:
+ a004: f7fe effc blx 9000 <appfunc1-0x1000>
+ a008: 00000010 \.word 0x00000010
diff --git a/ld/testsuite/ld-arm/ifunc-17.gd b/ld/testsuite/ld-arm/ifunc-17.gd
index 4a12eb87f6..dadfc9eeb5 100644
--- a/ld/testsuite/ld-arm/ifunc-17.gd
+++ b/ld/testsuite/ld-arm/ifunc-17.gd
@@ -3,8 +3,8 @@
Contents of section \.got:
#------------------------------------------------------------------------------
-#------ 000100a8: 0x8091 (appfunc1)
-#------ 000100ac: 0x8093 (appfunc2)
+#------ 0001100c: 0xa001 (appfunc1)
+#------ 00011010: 0xa003 (appfunc2)
#------------------------------------------------------------------------------
- 1009c 00000000 00000000 00000000 91800000 .*
- 100ac 93800000 .*
+ 11000 00000000 00000000 00000000 01a00000 .*
+ 11010 03a00000 .*
diff --git a/ld/testsuite/ld-arm/ifunc-17.rd b/ld/testsuite/ld-arm/ifunc-17.rd
index a93fd64a9b..b167f4529d 100644
--- a/ld/testsuite/ld-arm/ifunc-17.rd
+++ b/ld/testsuite/ld-arm/ifunc-17.rd
@@ -1,5 +1,5 @@
-Relocation section '\.rel\.dyn' at offset 0x74 contains 2 entries:
+Relocation section '\.rel\.dyn' at offset 0x8000 contains 2 entries:
Offset Info Type Sym\.Value Sym\. Name
-000100a8 ......a0 R_ARM_IRELATIVE
-000100ac ......a0 R_ARM_IRELATIVE
+0001100c ......a0 R_ARM_IRELATIVE
+00011010 ......a0 R_ARM_IRELATIVE