From c13c241c3be9052ddf04d1b266283c3c35f2def7 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 21 Mar 2022 09:34:46 +0900 Subject: [PATCH] ld.so: Ignore DTPMOD, DTPOFF rather than bailing --- linker/linker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linker/linker.c b/linker/linker.c index a38bb65a..25e18d3f 100644 --- a/linker/linker.c +++ b/linker/linker.c @@ -522,6 +522,10 @@ static int object_relocate(elf_t * object) { } memcpy((void *)(table->r_offset + object->base), &x, sizeof(uintptr_t)); break; + case R_X86_64_DTPMOD64: + break; + case R_X86_64_DTPOFF64: + break; #elif defined(__aarch64__) case 1024: /* COPY */ memcpy((void *)(table->r_offset + object->base), (void *)x, sym->st_size);