mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
3677b72961
A bunch of ld tests fail on these targets due to the test specifying -melf32_sparc or -melf64_sparc, which according to ld/configure.tgt are valid. However, config.bfd lacks the corresponding bfd target resulting in an error. Fix that by adding target_selvecs. bfd/ * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec. (sparc64-*-solaris2*): Add sparc_elf64_vec and sparc_elf32_vec. ld/ * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment base for some tests. * testsuite/ld-sparc/gotop32.dd: Match solaris output. * testsuite/ld-sparc/gotop32.sd: Likewise. * testsuite/ld-sparc/gotop32.td: Likewise. * testsuite/ld-sparc/gotop64.dd: Likewise. * testsuite/ld-sparc/gotop64.sd: Likewise. * testsuite/ld-sparc/gotop64.td: Likewise. * testsuite/ld-sparc/tlsg32.sd: Likewise. * testsuite/ld-sparc/tlsg64.sd: Likewise. * testsuite/ld-sparc/tlspie32.dd: Likewise. * testsuite/ld-sparc/tlspie64.dd: Likewise. * testsuite/ld-sparc/tlssunbin32.dd: Likewise. * testsuite/ld-sparc/tlssunbin32.sd: Likewise. * testsuite/ld-sparc/tlssunbin32.td: Likewise. * testsuite/ld-sparc/tlssunbin64.dd: Likewise. * testsuite/ld-sparc/tlssunbin64.sd: Likewise. * testsuite/ld-sparc/tlssunbin64.td: Likewise. * testsuite/ld-sparc/tlssunnopic32.dd: Likewise. * testsuite/ld-sparc/tlssunnopic32.sd: Likewise. * testsuite/ld-sparc/tlssunnopic64.dd: Likewise. * testsuite/ld-sparc/tlssunnopic64.sd: Likewise. * testsuite/ld-sparc/tlssunpic32.dd: Likewise. * testsuite/ld-sparc/tlssunpic32.sd: Likewise. * testsuite/ld-sparc/tlssunpic32.td: Likewise. * testsuite/ld-sparc/tlssunpic64.dd: Likewise. * testsuite/ld-sparc/tlssunpic64.sd: Likewise. * testsuite/ld-sparc/tlssunpic64.td: Likewise. * testsuite/ld-sparc/wdispcall.dd: Likewise.
35 lines
982 B
Plaintext
35 lines
982 B
Plaintext
#source: gotop64.s
|
|
#as: --64 -K PIC
|
|
#ld: -shared -melf64_sparc
|
|
#objdump: -drj.text
|
|
#target: sparc*-*-*
|
|
|
|
.*: +file format elf64-sparc.*
|
|
|
|
Disassembly of section .text:
|
|
0000000000001000 <foo-0x8>:
|
|
+1000: 81 c3 e0 08 retl *
|
|
+1004: ae 03 c0 17 add %o7, %l7, %l7
|
|
|
|
0000000000001008 <foo>:
|
|
+1008: 9d e3 bf 60 save %sp, -160, %sp
|
|
+100c: 2f 00 04 04 sethi %hi\(0x101000\), %l7
|
|
+1010: 7f ff ff fc call 1000 <foo-0x8>
|
|
+1014: ae 05 e0 d0 add %l7, 0xd0, %l7 ! 1010d0 <.*>
|
|
+1018: 01 00 00 00 nop *
|
|
+101c: 23 00 00 00 sethi %hi\(0\), %l1
|
|
+1020: 01 00 00 00 nop *
|
|
+1024: a2 1c 60 08 xor %l1, 8, %l1
|
|
+1028: 01 00 00 00 nop *
|
|
+102c: f0 5d c0 11 ldx \[ %l7 \+ %l1 \], %i0
|
|
+1030: 01 00 00 00 nop *
|
|
+1034: 23 00 00 03 sethi %hi\(0xc00\), %l1
|
|
+1038: 01 00 00 00 nop *
|
|
+103c: a2 1c 63 24 xor %l1, 0x324, %l1
|
|
+1040: 01 00 00 00 nop *
|
|
+1044: b0 05 c0 11 add %l7, %l1, %i0
|
|
+1048: 01 00 00 00 nop *
|
|
+104c: 81 c7 e0 08 ret
|
|
+1050: 81 e8 00 00 restore
|
|
#pass
|