From 4c2ef9947ae5c89f4bfb0b217d6653aa73b95ac2 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 5 Jan 2023 18:19:24 +0100 Subject: Fixed an issue with TLS Relocation (should fix the regression notified in #360) --- src/elfs/elfloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 0a0f0cf2..94c5a93e 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -781,7 +781,7 @@ int RelocateElfRELA(lib_t *maplib, lib_t *local_maplib, int bindnow, elfheader_t break; case R_X86_64_DTPMOD64: // ID of module containing symbol - if(!symname || symname[0]=='\0') + if(!symname || symname[0]=='\0' || bind==STB_LOCAL) offs = getElfIndex(my_context, head); else { if(!h_tls) { -- cgit 1.4.1