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.
15 lines
396 B
Text
15 lines
396 B
Text
#source: tls.s
|
|
#as: -a64
|
|
#ld: -shared
|
|
#objdump: -sj.got
|
|
#target: powerpc64*-*-*
|
|
|
|
.*
|
|
|
|
Contents of section \.got:
|
|
107e0 (00000000|e0870100) (000187e0|00000000) 00000000 00000000 .*
|
|
.* 00000000 00000000 00000000 00000000 .*
|
|
.* 00000000 00000000 00000000 00000000 .*
|
|
.* 00000000 00000000 00000000 00000000 .*
|
|
.* 00000000 00000000 00000000 00000000 .*
|
|
.* 00000000 00000000 00000000 00000000 .*
|