]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite/
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 13 May 2012 09:55:45 +0000 (09:55 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Sun, 13 May 2012 09:55:45 +0000 (09:55 +0000)
* ld-mips-elf/mips-elf.exp (mips16_call_global_test): Use the
no-shared-1.ld linker script.
* ld-mips-elf/mips16-call-global-1.s: Add alignment directive.
* ld-mips-elf/mips16-call-global-2.s: Likewise.
* ld-mips-elf/mips16-call-global-3.s: Likewise.
* ld-mips-elf/mips16-call-global.d: Use 50000 as the base address.

ld/testsuite/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/mips16-call-global-1.s
ld/testsuite/ld-mips-elf/mips16-call-global-2.s
ld/testsuite/ld-mips-elf/mips16-call-global-3.s
ld/testsuite/ld-mips-elf/mips16-call-global.d

index 24b0c3ca17c78ff92a449117becf9977151bb41e..c90a26e1bda2579feee753305746005d2d1d20e0 100644 (file)
@@ -1,3 +1,12 @@
+2012-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * ld-mips-elf/mips-elf.exp (mips16_call_global_test): Use the
+       no-shared-1.ld linker script.
+       * ld-mips-elf/mips16-call-global-1.s: Add alignment directive.
+       * ld-mips-elf/mips16-call-global-2.s: Likewise.
+       * ld-mips-elf/mips16-call-global-3.s: Likewise.
+       * ld-mips-elf/mips16-call-global.d: Use 50000 as the base address.
+
 2012-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * ld-mips-elf/attr-gnu-4-00.d: Remove assembler options and emulator
index ce448cfcf96b2f710c3dd8b61b1acd5f915281aa..ffcb9c4cae08cd537d2f0dd86da2532509464c1b 100644 (file)
@@ -503,7 +503,7 @@ if {[istarget mips*-*-linux*]} {
 
 set mips16_call_global_test [list \
     [list "Global calls from mips16" \
-        "$o32_ld_flags" \
+        "$o32_ld_flags -T no-shared-1.ld" \
         "$o32_as_flags -mips32r2" \
         {mips16-call-global-1.s mips16-call-global-2.s mips16-call-global-3.s} \
         {{objdump -dr mips16-call-global.d}} \
index 1e60bcc14cccb7a99dbaafa2e1f0d4774ea40d82..4c6d0a43aae4ab74d4162c76be1400dc16f8b3c8 100644 (file)
@@ -2,6 +2,7 @@
 
        .globl  __start
        .ent    __start
+       .align  4
 __start:
        .frame  $sp,24,$31
        save    24,$31
index 2843fcd6ecd40690cb72c75f7a0b9c7865e65c9b..7f9bbf09c2fdb8240ae6ed78ee1a2358d020b3d0 100644 (file)
@@ -3,6 +3,7 @@
        .globl  x
        .ent    x
        .type   x,@function
+       .align  4
 x:
        jr      $31
        .end    x
index 5113c5d44a946f1d751c0d92059b8e8d9c3cf02a..1606e3c7bbed9192d1d4d31714c0cd3bdb189e8e 100644 (file)
@@ -3,6 +3,7 @@
        .globl  y
        .ent    y
        .type   y,@function
+       .align  4
 y:
        jr      $31
        .end    y
index 390d84cf1d763ec62d18359c1ef054227f76599f..573c21977d2750dbee08c64d051bc4fca7da6ac5 100644 (file)
@@ -3,37 +3,37 @@
 
 Disassembly of section .text:
 
-.*0090 <__start>:
-.*0090:        64c3            save    24,ra
-.*0092:        1a00 002e       jal     .*00b8 <x\+0x8>
-.*0096:        6500            nop
-.*0098:        1e00 0032       jalx    .*00c8 <z>
-.*009c:        6500            nop
-.*009e:        6443            restore 24,ra
-.*00a0:        e8a0            jrc     ra
-.*00a2:        6500            nop
-.*00a4:        6500            nop
-.*00a6:        6500            nop
-.*00a8:        6500            nop
-.*00aa:        6500            nop
-.*00ac:        6500            nop
-.*00ae:        6500            nop
+0*50000 <__start>:
+ *50000:       64c3            save    24,ra
+ *50002:       1820 400a       jal     50028 <x\+0x8>
+ *50006:       6500            nop
+ *50008:       1c20 400e       jalx    50038 <z>
+ *5000c:       6500            nop
+ *5000e:       6443            restore 24,ra
+ *50010:       e8a0            jrc     ra
+ *50012:       6500            nop
+ *50014:       6500            nop
+ *50016:       6500            nop
+ *50018:       6500            nop
+ *5001a:       6500            nop
+ *5001c:       6500            nop
+ *5001e:       6500            nop
 
-.*00b0 <x>:
-.*00b0:        e8a0            jrc     ra
-.*00b2:        6500            nop
-.*00b4:        6500            nop
-.*00b6:        6500            nop
-.*00b8:        6500            nop
-.*00ba:        6500            nop
-.*00bc:        6500            nop
-.*00be:        6500            nop
+0*50020 <x>:
+ *50020:       e8a0            jrc     ra
+ *50022:       6500            nop
+ *50024:       6500            nop
+ *50026:       6500            nop
+ *50028:       6500            nop
+ *5002a:       6500            nop
+ *5002c:       6500            nop
+ *5002e:       6500            nop
 
-.*00c0 <y>:
-.*00c0:        03e00008        jr      ra
-.*00c4:        00000000        nop
+0*50030 <y>:
+ *50030:       03e00008        jr      ra
+ *50034:       00000000        nop
 
-.*00c8 <z>:
-.*00c8:        03e00008        jr      ra
-.*00cc:        00000000        nop
+0*50038 <z>:
+ *50038:       03e00008        jr      ra
+ *5003c:       00000000        nop
        \.\.\.