From 536a9d8a04dc75246d7ad70c9372064c41a43467 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Fri, 19 Feb 2010 01:41:19 -0800 Subject: x86_64: finish up tls reloc support in ldso Signed-off-by: Austin Foxley --- ldso/ldso/x86_64/dl-sysdep.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ldso/ldso/x86_64/dl-sysdep.h') diff --git a/ldso/ldso/x86_64/dl-sysdep.h b/ldso/ldso/x86_64/dl-sysdep.h index 0eed657e8..ae3542aed 100644 --- a/ldso/ldso/x86_64/dl-sysdep.h +++ b/ldso/ldso/x86_64/dl-sysdep.h @@ -46,8 +46,12 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_ent define the value. ELF_RTYPE_CLASS_NOCOPY iff TYPE should not be allowed to resolve to one of the main executable's symbols, as for a COPY reloc. */ -#define elf_machine_type_class(type) \ - ((((type) == R_X86_64_JUMP_SLOT) * ELF_RTYPE_CLASS_PLT) \ +#define elf_machine_type_class(type) \ + ((((type) == R_X86_64_JUMP_SLOT \ + || (type) == R_X86_64_DTPMOD64 \ + || (type) == R_X86_64_DTPOFF64 \ + || (type) == R_X86_64_TPOFF64) \ + * ELF_RTYPE_CLASS_PLT) \ | (((type) == R_X86_64_COPY) * ELF_RTYPE_CLASS_COPY)) /* Return the link-time address of _DYNAMIC. Conveniently, this is the -- cgit v1.2.3