summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-07-16 13:18:52 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-07-16 13:18:52 +0000
commit555fc6b631f7cabfcf5829046e11b024a8843e8e (patch)
treeeaf5cce8e69a63019456cff106ed1a63bb55d352 /ld
parenta7e6398d0d214c55ce6571ec13bbd781b46d5742 (diff)
downloadbinutils-redhat-555fc6b631f7cabfcf5829046e11b024a8843e8e.tar.gz
gas/
* config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write the offset for REL targets here. gas/testsuite/ * gas/arm/target-reloc-1.s: New. * gas/arm/target-reloc-1.d: New. ld/testsuite/ * ld-arm/arm-target2.s: Add addend cases. * ld-arm/arm-target2-rel.d: Adjust. * ld-arm/arm-target2-abs.d: Adjust. * ld-arm/arm-target2-got-rel.d: Adjust.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-arm/arm-target2-abs.d2
-rw-r--r--ld/testsuite/ld-arm/arm-target2-got-rel.d4
-rw-r--r--ld/testsuite/ld-arm/arm-target2-rel.d2
-rw-r--r--ld/testsuite/ld-arm/arm-target2.s3
5 files changed, 14 insertions, 4 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index a2d8cf9306..1c00f3e962 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2009-07-16 Nathan Sidwell <nathan@codesourcery.com>
+
+ * ld-arm/arm-target2.s: Add addend cases.
+ * ld-arm/arm-target2-rel.d: Adjust.
+ * ld-arm/arm-target2-abs.d: Adjust.
+ * ld-arm/arm-target2-got-rel.d: Adjust.
+
2009-07-13 H.J. Lu <hongjiu.lu@intel.com>
* ld-ifunc/ifunc.exp: Don't use -shared/-static to build object
diff --git a/ld/testsuite/ld-arm/arm-target2-abs.d b/ld/testsuite/ld-arm/arm-target2-abs.d
index af64e60a2f..a86dc01643 100644
--- a/ld/testsuite/ld-arm/arm-target2-abs.d
+++ b/ld/testsuite/ld-arm/arm-target2-abs.d
@@ -2,6 +2,6 @@
.*: file format.*
Contents of section .text:
- 8000 (04800000|00008004) .*
+ 8000 (10800000|00008010) (44920000|00009244) (1080efcd|cdef8010) (20b25476|7654b220) .*
# Ignore .ARM.attributes section
#...
diff --git a/ld/testsuite/ld-arm/arm-target2-got-rel.d b/ld/testsuite/ld-arm/arm-target2-got-rel.d
index 1a996f0c20..34337912f9 100644
--- a/ld/testsuite/ld-arm/arm-target2-got-rel.d
+++ b/ld/testsuite/ld-arm/arm-target2-got-rel.d
@@ -2,8 +2,8 @@
.*: file format.*
Contents of section .text:
- 8000 (00100000|00001000) .*
+ 8000 (00100000|00001000) (30220000|00002230) (f80fefcd|cdef0ff8) (04425476|76544204) .*
Contents of section .got:
- 9000 (04800000|00008004) .*
+ 9000 (10800000|00008010) .*
# Ignore .ARM.attributes section
#...
diff --git a/ld/testsuite/ld-arm/arm-target2-rel.d b/ld/testsuite/ld-arm/arm-target2-rel.d
index 569d6b595b..f812640673 100644
--- a/ld/testsuite/ld-arm/arm-target2-rel.d
+++ b/ld/testsuite/ld-arm/arm-target2-rel.d
@@ -2,6 +2,6 @@
.*: file format.*
Contents of section .text:
- 8000 (04000000|00000004) .*
+ 8000 (10000000|00000010) (40120000|00001240) (0800efcd|cdef0008) (14325476|76543214) .*
# Ignore .ARM.attributes section
#...
diff --git a/ld/testsuite/ld-arm/arm-target2.s b/ld/testsuite/ld-arm/arm-target2.s
index 0c343ef6e8..26c451904a 100644
--- a/ld/testsuite/ld-arm/arm-target2.s
+++ b/ld/testsuite/ld-arm/arm-target2.s
@@ -3,4 +3,7 @@
.global _start
_start:
.word foo(target2)
+ .word foo+0x1234(target2)
+ .word foo+0xcdef0000(target2)
+ .word foo+0x76543210(target2)
foo: