[AArch64] Adjust testcases for move of &_DYNAMIC to got[0].
authorMarcus Shawcroft <mshawcroft@sourceware.org>
Tue, 2 Jul 2013 06:37:33 +0000 (06:37 +0000)
committerMarcus Shawcroft <mshawcroft@sourceware.org>
Tue, 2 Jul 2013 06:37:33 +0000 (06:37 +0000)
bfd/ChangeLog
ld/testsuite/ld-aarch64/emit-relocs-309-low.d
ld/testsuite/ld-aarch64/emit-relocs-309-up.d
ld/testsuite/ld-aarch64/emit-relocs-312.d
ld/testsuite/ld-aarch64/gc-got-relocs.d
ld/testsuite/ld-aarch64/gc-tls-relocs.d
ld/testsuite/ld-aarch64/tls-relax-all.d
ld/testsuite/ld-aarch64/tls-relax-gd-ie.d
ld/testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d
ld/testsuite/ld-aarch64/tls-relax-gdesc-ie.d

index b55f3adc2c014829511bbde2fb572f887b49b528..810be98390812a8bdb5c1ee75ab5c1ac8adb936b 100644 (file)
@@ -1,3 +1,15 @@
+2013-07-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * ld-aarch64/emit-relocs-309-low.d: Adjust .text address.
+       * ld-aarch64/emit-relocs-309-up.d: Adjust .got address.
+       * ld-aarch64/emit-relocs-312.d: Adjust offsets into .got.
+       * ld-aarch64/tls-relax-all.d: Likewise.
+       * ld-aarch64/gc-got-relocs.d: Adjust expected .got content.
+       * ld-aarch64/gc-tls-relocs.d: Likewise.
+       * ld-aarch64/tls-relax-gd-ie.d: Likewise.
+       * ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
+       * ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
+
 2013-07-02  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (ppc64_elf_relocate_section): Set "relocation" for
index acb8cd3abe8983866aaeed92ec60d9bc844e86ed..93896cfc8733e0052bd86bfb0cc9ec8011a465f6 100644 (file)
@@ -1,12 +1,12 @@
 #name: aarch64-emit-relocs-309-low
 #source: emit-relocs-309.s
 #as:
-#ld: -Ttext 0xFFFFC --section-start .got=0x0
+#ld: -Ttext 0x100004 --section-start .got=0x0
 #objdump: -dr
 #...
 
 Disassembly of section \.text:
 
-00000000000ffffc <_start>:
-   ffffc:      d503201f        nop
-  100000:      58800000        ldr     x0, 0 .*
+0000000000100004 <_start>:
+  100004:      d503201f        nop
+  100008:      58800000        ldr     x0, 8 .*
index a84c343758d1916474758b449492f94ef8241cee..32922eef092b7cd1cdced69ffbf640755e1dd6c7 100644 (file)
@@ -1,7 +1,7 @@
 #name: aarch64-emit-relocs-309-up
 #source: emit-relocs-309.s
 #as:
-#ld: -Ttext 0x0 --section-start .got=0x100000
+#ld: -Ttext 0x0 --section-start .got=0xffff8
 #objdump: -dr
 #...
 
index 8d50d8d6699174d80a5640efcda2a516f562275d..c10dc1ee1215e1ac3a72ec3291f4862bb2ba7d83 100644 (file)
        +1000c: R_AARCH64_LD_PREL_LO19  tempy2
  +10010:       58f89131        ldr     x17, 1234 <tempy3>
        +10010: R_AARCH64_LD_PREL_LO19  tempy3
- +10014:       f9400843        ldr     x3, \[x2.*
+ +10014:       f9400c43        ldr     x3, \[x2.*
        +10014: R_AARCH64_LD64_GOT_LO12_NC      jempy
- +10018:       f9400444        ldr     x4, \[x2.*
+ +10018:       f9400844        ldr     x4, \[x2.*
        +10018: R_AARCH64_LD64_GOT_LO12_NC      gempy
- +1001c:       f9400045        ldr     x5, \[x2.*
+ +1001c:       f9400445        ldr     x5, \[x2.*
        +1001c: R_AARCH64_LD64_GOT_LO12_NC      lempy
 
index 0944b066c3b5575f77cf345681f6b22e4dfac908..bb982414e4aa6a2702438d95aae7bf02d49341f0 100644 (file)
@@ -23,7 +23,7 @@ Contents of section .text:
  8000 1f2003d5                             .*
 Contents of section .got:
  9000 0+ 0+ 0+ 0+  .*
- 9010 0+ 0+                    .*
+ 9010 0+ 0+ 0+ 0+  .*
 
 Disassembly of section .text:
 
index d6c87406c68c049b47c87833b7aa14119def5603..5380bc0220726221b0b688778cb3d2f825f49bda 100644 (file)
@@ -25,7 +25,7 @@ Contents of section .text:
  8000 1f2003d5                             .*
 Contents of section .got:
  9000 0+ 0+ 0+ 0+  .*
- 9010 0+ 0+                    .*
+ 9010 0+ 0+ 0+ 0+  .*
 
 Disassembly of section .text:
 
index d3db04df15810025f2c70bddd507a39171de49e0..f8485f151d1f2d3ed6dea5d82b87c8f56f03edb6 100644 (file)
@@ -5,7 +5,7 @@
  +10000:       a9bf7bfd        stp     x29, x30, \[sp,#-16\]!
  +10004:       910003fd        mov     x29, sp
  +10008:       90000080        adrp    x0, 20000 <ie_var\+0x1fff0>
- +1000c:       f9400000        ldr     x0, \[x0\]
+ +1000c:       f9400400        ldr     x0, \[x0,#8\]
  +10010:       d503201f        nop
  +10014:       d503201f        nop
  +10018:       d53bd041        mrs     x1, tpidr_el0
@@ -20,7 +20,7 @@
  +1003c:       b9400000        ldr     w0, \[x0\]
  +10040:       0b000021        add     w1, w1, w0
  +10044:       90000080        adrp    x0, 20000 <ie_var\+0x1fff0>
- +10048:       f9400400        ldr     x0, \[x0,#8\]
+ +10048:       f9400800        ldr     x0, \[x0,#16\]
  +1004c:       d53bd041        mrs     x1, tpidr_el0
  +10050:       8b000020        add     x0, x1, x0
  +10054:       b9400000        ldr     w0, \[x0\]
index a142f5463624182dc5745a633a772824f747b2f0..2dc00ca06ca2dcba2c6426b94fa5002e4b79042d 100644 (file)
@@ -3,7 +3,7 @@
 #objdump: -dr
 #...
  +10000:       90000080        adrp    x0, 20000 <var\+0x20000>
- +10004:       f9400000        ldr     x0, \[x0\]
+ +10004:       f9400400        ldr     x0, \[x0,#8\]
  +10008:       d53bd041        mrs     x1, tpidr_el0
  +1000c:       8b000020        add     x0, x1, x0
  +10010:       b9400000        ldr     w0, \[x0\]
index f3307ae573126554c0a5ba9461a2d8db4c420b00..23d9d1d1943582121a15960762a0e9c4ba465ec1 100644 (file)
@@ -4,7 +4,7 @@
 #...
  +10000:       90000080        adrp    x0, 20000 <var\+0x20000>
  +10004:       d503201f        nop
- +10008:       f9400000        ldr     x0, \[x0\]
+ +10008:       f9400400        ldr     x0, \[x0,#8\]
  +1000c:       d503201f        nop
  +10010:       d503201f        nop
  +10014:       d503201f        nop
index 691df06bc9043e8a84521d7abac7c17d5bfa46f6..3aec3add5c41f6021d5adbc85c877f210af3aedd 100644 (file)
@@ -3,7 +3,7 @@
 #objdump: -dr
 #...
  +10000:       90000080        adrp    x0, 20000 <var\+0x20000>
- +10004:       f9400000        ldr     x0, \[x0\]
+ +10004:       f9400400        ldr     x0, \[x0,#8\]
  +10008:       d503201f        nop
  +1000c:       d503201f        nop
  +10010:       d53bd041        mrs     x1, tpidr_el0