From 02277eae005e94859bd208e7814f1ac66c8b2433 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 13 May 2012 09:55:45 +0000 Subject: [PATCH] ld/testsuite/ * 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 | 9 ++++ ld/testsuite/ld-mips-elf/mips-elf.exp | 2 +- ld/testsuite/ld-mips-elf/mips16-call-global-1.s | 1 + ld/testsuite/ld-mips-elf/mips16-call-global-2.s | 1 + ld/testsuite/ld-mips-elf/mips16-call-global-3.s | 1 + ld/testsuite/ld-mips-elf/mips16-call-global.d | 60 ++++++++++++------------- 6 files changed, 43 insertions(+), 31 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 24b0c3c..c90a26e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2012-05-13 Richard Sandiford + * 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 + * ld-mips-elf/attr-gnu-4-00.d: Remove assembler options and emulator linker option. * ld-mips-elf/attr-gnu-4-01.d, ld-mips-elf/attr-gnu-4-02.d, diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index ce448cf..ffcb9c4 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -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}} \ diff --git a/ld/testsuite/ld-mips-elf/mips16-call-global-1.s b/ld/testsuite/ld-mips-elf/mips16-call-global-1.s index 1e60bcc..4c6d0a4 100644 --- a/ld/testsuite/ld-mips-elf/mips16-call-global-1.s +++ b/ld/testsuite/ld-mips-elf/mips16-call-global-1.s @@ -2,6 +2,7 @@ .globl __start .ent __start + .align 4 __start: .frame $sp,24,$31 save 24,$31 diff --git a/ld/testsuite/ld-mips-elf/mips16-call-global-2.s b/ld/testsuite/ld-mips-elf/mips16-call-global-2.s index 2843fcd..7f9bbf0 100644 --- a/ld/testsuite/ld-mips-elf/mips16-call-global-2.s +++ b/ld/testsuite/ld-mips-elf/mips16-call-global-2.s @@ -3,6 +3,7 @@ .globl x .ent x .type x,@function + .align 4 x: jr $31 .end x diff --git a/ld/testsuite/ld-mips-elf/mips16-call-global-3.s b/ld/testsuite/ld-mips-elf/mips16-call-global-3.s index 5113c5d..1606e3c 100644 --- a/ld/testsuite/ld-mips-elf/mips16-call-global-3.s +++ b/ld/testsuite/ld-mips-elf/mips16-call-global-3.s @@ -3,6 +3,7 @@ .globl y .ent y .type y,@function + .align 4 y: jr $31 .end y diff --git a/ld/testsuite/ld-mips-elf/mips16-call-global.d b/ld/testsuite/ld-mips-elf/mips16-call-global.d index 390d84c..573c219 100644 --- a/ld/testsuite/ld-mips-elf/mips16-call-global.d +++ b/ld/testsuite/ld-mips-elf/mips16-call-global.d @@ -3,37 +3,37 @@ Disassembly of section .text: -.*0090 <__start>: -.*0090: 64c3 save 24,ra -.*0092: 1a00 002e jal .*00b8 -.*0096: 6500 nop -.*0098: 1e00 0032 jalx .*00c8 -.*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 + *50006: 6500 nop + *50008: 1c20 400e jalx 50038 + *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 : -.*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 : + *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 : -.*00c0: 03e00008 jr ra -.*00c4: 00000000 nop +0*50030 : + *50030: 03e00008 jr ra + *50034: 00000000 nop -.*00c8 : -.*00c8: 03e00008 jr ra -.*00cc: 00000000 nop +0*50038 : + *50038: 03e00008 jr ra + *5003c: 00000000 nop \.\.\. -- 2.7.4