From: Alan Modra Date: Mon, 7 Apr 2008 23:37:25 +0000 (+0000) Subject: * ld-spu/ovl2.s: Extend to test jump table references and X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=16aef3def7791375a07e8d05e709cde27cd07fc4;p=binutils-gdb.git * ld-spu/ovl2.s: Extend to test jump table references and absolute _SPUEAR_ syms. * ld-spu/ovl2.d: Update. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 325ffd78eca..ba0f70e8862 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-04-08 Alan Modra + + * ld-spu/ovl2.s: Extend to test jump table references and + absolute _SPUEAR_ syms. + * ld-spu/ovl2.d: Update. + 2008-03-28 Joseph Myers * ld-elfcomm/elfcomm.exp: Run $READELF not readelf. diff --git a/ld/testsuite/ld-spu/ovl2.d b/ld/testsuite/ld-spu/ovl2.d index 418d832e2f4..abfe745d612 100644 --- a/ld/testsuite/ld-spu/ovl2.d +++ b/ld/testsuite/ld-spu/ovl2.d @@ -19,7 +19,9 @@ Disassembly of section \.text: 00000110 : .* bi \$0 -.* +.*00 00 01 40.* +.*SPU_ADDR32 \.ov_a1\+0x14 + \.\.\. #00000118 <00000000\.ovl_call.f1_a1>: #.* brsl \$75,.* <__ovly_load>.* @@ -36,7 +38,7 @@ Disassembly of section \.text: 00000120 <00000000\.ovl_call.f1_a1>: .* ila \$78,1 .* lnop -.* ila \$79,1024 # 400 +.* ila \$79,1040 # 410 .* br .* <__ovly_load>.* 00000130 <00000000\.ovl_call.setjmp>: @@ -45,49 +47,91 @@ Disassembly of section \.text: .* ila \$79,268 # 10c .* br .* <__ovly_load>.* -00000140 <_SPUEAR_f1_a2>: +00000140 <00000000\.ovl_call\.13:5>: +.* ila \$78,1 +.* lnop +.* ila \$79,1044 # 414 +.* br .* <__ovly_load>.* + +00000150 <_SPUEAR_f1_a2>: .* ila \$78,2 .* lnop -.* ila \$79,1024 # 400 +.* ila \$79,1040 # 410 .* br .* <__ovly_load>.* #... Disassembly of section \.ov_a1: -00000400 : - 400: 35 00 00 00 bi \$0 - \.\.\. +00000400 <00000001\.ovl_call\.14:6>: +.* ila \$78,2 +.* lnop +.* ila \$79,1044 # 414 +.* br .* <__ovly_load>.* + +00000410 : +.* bi \$0 +.*00 00 04 14.* +.*SPU_ADDR32 \.ov_a1\+0x14 +.*00 00 04 20.* +.*SPU_ADDR32 \.ov_a1\+0x20 +.*00 00 04 00.* +.*SPU_ADDR32 \.ov_a2\+0x14 + Disassembly of section \.ov_a2: -00000400 : - 400: 32 7f a2 00 br 110 # 110 - 400: SPU_REL16 longjmp - \.\.\. +00000400 <00000002\.ovl_call\.13:5>: +.* ila \$78,1 +.* lnop +.* ila \$79,1056 # 420 +.* br .* <__ovly_load>.* + +00000410 : +.* br .* .* +.*SPU_REL16 longjmp +.*00 00 04 00.* +.*SPU_ADDR32 \.ov_a1\+0x20 +.*00 00 04 1c.* +.*SPU_ADDR32 \.ov_a2\+0x1c +.*00 00 00 00.* + Disassembly of section \.data: -00000410 <_ovly_table-0x10>: - 410: 00 00 00 00 .* - 414: 00 00 00 01 .* +00000420 <_ovly_table-0x10>: +.*00 00 00 00 .* +.*00 00 00 01 .* \.\.\. -00000420 <_ovly_table>: - 420: 00 00 04 00 .* - 424: 00 00 00 10 .* -# 428: 00 00 03 10 .* - 428: 00 00 03 30 .* - 42c: 00 00 00 01 .* - 430: 00 00 04 00 .* - 434: 00 00 00 10 .* -# 438: 00 00 03 20 .* - 438: 00 00 03 40 .* - 43c: 00 00 00 01 .* - -00000440 <_ovly_buf_table>: - 440: 00 00 00 00 .* +00000430 <_ovly_table>: +.*00 00 04 00 .* +.*00 00 00 20 .* +#.*00 00 03 10 .* +.*00 00 03 40 .* +.*00 00 00 01 .* +.*00 00 04 00 .* +.*00 00 00 20 .* +#.*00 00 03 20 .* +.*00 00 03 60 .* +.*00 00 00 01 .* + +00000450 <_ovly_buf_table>: +.*00 00 00 00 .* Disassembly of section \.toe: -00000450 <_EAR_>: +00000460 <_EAR_>: \.\.\. + +Disassembly of section .nonalloc: + +00000000 <.nonalloc>: +.*00 00 04 14.* +.*SPU_ADDR32 \.ov_a1\+0x14 +.*00 00 04 20.* +.*SPU_ADDR32 \.ov_a1\+0x20 +.*00 00 04 14.* +.*SPU_ADDR32 \.ov_a2\+0x14 +.*00 00 04 1c.* +.*SPU_ADDR32 \.ov_a2\+0x1c + Disassembly of section \.note\.spu_name: .* <\.note\.spu_name>: diff --git a/ld/testsuite/ld-spu/ovl2.s b/ld/testsuite/ld-spu/ovl2.s index db3ea7d73f2..9147a786214 100644 --- a/ld/testsuite/ld-spu/ovl2.s +++ b/ld/testsuite/ld-spu/ovl2.s @@ -17,6 +17,8 @@ longjmp: bi lr .size longjmp,.-longjmp + .word .L1 + .section .ov_a1,"ax",@progbits .p2align 2 .global f1_a1 @@ -25,6 +27,10 @@ f1_a1: bi lr .size f1_a1,.-f1_a1 +.L1: + .word .L1, .L2, .L3 +.L2: + .section .ov_a2,"ax",@progbits .p2align 2 .type f1_a2,@function @@ -32,5 +38,15 @@ f1_a2: br longjmp .size f1_a2,.-f1_a2 +.L3: + .word .L2, .L4 +.L4: + + .section .nonalloc,"",@progbits + .word .L1,.L2,.L3,.L4 + _SPUEAR_f1_a2 = f1_a2 .global _SPUEAR_f1_a2 + +_SPUEAR_version=3 + .global _SPUEAR_version