diff options
author | Alan Modra <amodra@gmail.com> | 2003-02-18 12:54:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-02-18 12:54:15 +0000 |
commit | d881513ac97c5a3bc9fd0d183cecadffc2901069 (patch) | |
tree | d03deffccead4103c9dd2000f42645525faa162b /bfd/elf32-ppc.c | |
parent | 89c3607e7b581ab2232dc188d0df6b675a57848b (diff) | |
download | gdb-d881513ac97c5a3bc9fd0d183cecadffc2901069.zip gdb-d881513ac97c5a3bc9fd0d183cecadffc2901069.tar.gz gdb-d881513ac97c5a3bc9fd0d183cecadffc2901069.tar.bz2 |
* elf32-ppc.c (ppc_elf_relocate_section): Remove unnecessary test.
* elf64-ppc.c (ppc64_elf_tls_optimize): Decrement tlsld_got.refcount
on invalid LD relocs.
(allocate_dynrelocs): Invalid LD relocs don't use tlsld_got entry.
(ppc64_elf_relocate_section): Unify new handling of LD relocs and
tlsld_got entry. Use IS_PPC64_TLS_RELOC.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 27efe2e..e1aacfe 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4554,8 +4554,7 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section, indx = 0; if (tls_type == (TLS_TLS | TLS_LD) - && ((tls_mask & TLS_LD) == 0 - || h == NULL + && (h == NULL || !(h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC))) offp = &htab->tlsld_got.offset; else if (h != NULL) |