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.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
#source: tlslib.s
|
|
#source: tlstoc.s
|
|
#as: -a64
|
|
#ld:
|
|
#objdump: -dr
|
|
#target: powerpc64*-*-*
|
|
|
|
.*
|
|
|
|
Disassembly of section \.text:
|
|
|
|
.* <\.__tls_get_addr>:
|
|
.* (4e 80 00 20|20 00 80 4e) blr
|
|
|
|
.* <\._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 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
|
|
.* (3c 6d 00 00|00 00 6d 3c) addis r3,r13,0
|
|
.* (60 00 00 00|00 00 00 60) nop
|
|
.* (38 63 90 48|48 90 63 38) addi r3,r3,-28600
|
|
.* (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 50|50 80 23 39) addi r9,r3,-32688
|
|
.* (3d 23 00 00|00 00 23 3d) addis r9,r3,0
|
|
.* (81 49 80 58|58 80 49 81) lwz r10,-32680\(r9\)
|
|
.* (e9 22 80 40|40 80 22 e9) ld r9,-32704\(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 68|68 90 49 a1) lhz r10,-28568\(r9\)
|
|
.* (89 4d 90 70|70 90 4d 89) lbz r10,-28560\(r13\)
|
|
.* (3d 2d 00 00|00 00 2d 3d) addis r9,r13,0
|
|
.* (99 49 90 78|78 90 49 99) stb r10,-28552\(r9\)
|