mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
71a39c98f8
This change is to support the new ELFv2 ABI, which uses the value in r12 on function entry to calculate the got/toc pointer. bfd/ * elf64-ppc.c (build_plt_stub): Switch stubs to use r11 as base reg and r12 as destination. (ppc_build_one_stub): Likewise. (ppc64_elf_build_stubs): Likewise for glink. ld/testsuite/ * ld-powerpc/tls.s: Add proper .opd entry for _start. * ld-powerpc/tlstoc.s: Likewise. * ld-powerpc/relbrlt.d: Update for changed stubs. * ld-powerpc/tls.d: Update for changed stubs and _start .opd entry. * ld-powerpc/tls.g: Likewise. * ld-powerpc/tlsexe.d: Likewise. * ld-powerpc/tlsexe.g: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsexetoc.d: Likewise. * ld-powerpc/tlsexetoc.g: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlsso.d: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstoc.d: Likewise. * ld-powerpc/tlstoc.g: Likewise. * ld-powerpc/tlstocso.d: Likewise. * ld-powerpc/tlstocso.g: Likewise. * ld-powerpc/tlstocso.r: Likewise.
54 lines
2.0 KiB
Makefile
54 lines
2.0 KiB
Makefile
#source: tls.s
|
|
#source: tlslib.s
|
|
#as: -a64
|
|
#ld:
|
|
#objdump: -dr
|
|
#target: powerpc64*-*-*
|
|
|
|
.*
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+100000e8 <\._start>:
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 90 78|78 90 63 38) addi r3,r3,-28552
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 10 00|00 10 63 38) addi r3,r3,4096
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 90 40|40 90 63 38) addi r3,r3,-28608
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 10 00|00 10 63 38) addi r3,r3,4096
|
|
.*: (39 23 80 48|48 80 23 39) addi r9,r3,-32696
|
|
.*: (3d 23 00 00|00 00 23 3d) addis r9,r3,0
|
|
.*: (81 49 80 50|50 80 49 81) lwz r10,-32688\(r9\)
|
|
.*: (e9 22 80 10|10 80 22 e9) ld r9,-32752\(r2\)
|
|
.*: (7d 49 18 2a|2a 18 49 7d) ldx r10,r9,r3
|
|
.*: (3d 2d 00 00|00 00 2d 3d) addis r9,r13,0
|
|
.*: (a1 49 90 60|60 90 49 a1) lhz r10,-28576\(r9\)
|
|
.*: (89 4d 90 68|68 90 4d 89) lbz r10,-28568\(r13\)
|
|
.*: (3d 2d 00 00|00 00 2d 3d) addis r9,r13,0
|
|
.*: (99 49 90 70|70 90 49 99) stb r10,-28560\(r9\)
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 90 00|00 90 63 38) addi r3,r3,-28672
|
|
.*: (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 63 10 00|00 10 63 38) addi r3,r3,4096
|
|
.*: (f9 43 80 08|08 80 43 f9) std r10,-32760\(r3\)
|
|
.*: (3d 23 00 00|00 00 23 3d) addis r9,r3,0
|
|
.*: (91 49 80 10|10 80 49 91) stw r10,-32752\(r9\)
|
|
.*: (e9 22 80 08|08 80 22 e9) ld r9,-32760\(r2\)
|
|
.*: (7d 49 19 2a|2a 19 49 7d) stdx r10,r9,r3
|
|
.*: (3d 2d 00 00|00 00 2d 3d) addis r9,r13,0
|
|
.*: (b1 49 90 60|60 90 49 b1) sth r10,-28576\(r9\)
|
|
.*: (e9 4d 90 2a|2a 90 4d e9) lwa r10,-28632\(r13\)
|
|
.*: (3d 2d 00 00|00 00 2d 3d) addis r9,r13,0
|
|
.*: (a9 49 90 30|30 90 49 a9) lha r10,-28624\(r9\)
|
|
|
|
0+10000180 <\.__tls_get_addr>:
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|