aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-02-18 12:54:15 +0000
committerAlan Modra <amodra@gmail.com>2003-02-18 12:54:15 +0000
commitd881513ac97c5a3bc9fd0d183cecadffc2901069 (patch)
treed03deffccead4103c9dd2000f42645525faa162b /bfd/elf32-ppc.c
parent89c3607e7b581ab2232dc188d0df6b675a57848b (diff)
downloadgdb-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.c3
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)