bfd/
authorAlan Modra <amodra@gmail.com>
Tue, 6 Nov 2007 13:49:19 +0000 (13:49 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Nov 2007 13:49:19 +0000 (13:49 +0000)
commit102890f04c44b64cf5cef4588267dd9f24086ac7
tree5c316ac8605bfe000fa18716fe79e98b7a149156
parentdffc6a6425d286cd29643dcf96b5c2f61e756480
bfd/
* elf64-ppc.c (ppc64_elf_check_relocs): Don't refcount tlsld_got here..
(ppc64_elf_gc_sweep_hook): ..or here..
(ppc64_elf_tls_optimize): ..or here.  Make two passes through the
relocs, ensuring that tls_get_addr calls follow gd and ld relocs.
(allocate_dynrelocs): Refcount tlsld_got here.
(ppc64_elf_size_dynamic_sections): Allocate local got and call
allocate_dynrelocs before allocating tlsld_got.
(ppc64_elf_relocate_section): Remove check that a tls_get_addr
call follows gd and ld relocs.
ld/testsuite/
* ld-powerpc/tlsso.d: Update for changed got alloc order.
* ld-powerpc/tlsso.r: Likewise.
bfd/ChangeLog
bfd/elf64-ppc.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/tlsso.d
ld/testsuite/ld-powerpc/tlsso.r