about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-01-05 18:19:24 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-01-05 18:19:24 +0100
commit4c2ef9947ae5c89f4bfb0b217d6653aa73b95ac2 (patch)
treec85eec956a059b2d88720d4bfa9a8f0fd9a4abc7 /src
parentdb7c9e96ea6be30eb6071757d0032e3e589cdbc0 (diff)
downloadbox64-4c2ef9947ae5c89f4bfb0b217d6653aa73b95ac2.tar.gz
box64-4c2ef9947ae5c89f4bfb0b217d6653aa73b95ac2.zip
Fixed an issue with TLS Relocation (should fix the regression notified in #360)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/elfs/elfloader.c2
1 files changed, 1 insertions, 1 deletions
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) {