about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-06 19:13:08 +0100
committerptitSeb <sebastien.chev@gmail.com>2022-03-06 19:13:08 +0100
commita326c821580ed2cd6665312a6d78696c5f6afcca (patch)
tree77d237daf59282ee3a0255be9fd0c6f93206fca2 /src
parent9c47b1fbf933d33804cba51d8aa6adf728810133 (diff)
downloadbox64-a326c821580ed2cd6665312a6d78696c5f6afcca.tar.gz
box64-a326c821580ed2cd6665312a6d78696c5f6afcca.zip
Fixed dlinfo (helps wine)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librarian/librarian.c2
-rwxr-xr-xsrc/librarian/library.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librarian/librarian.c b/src/librarian/librarian.c
index e1d4acb9..adcf647e 100755
--- a/src/librarian/librarian.c
+++ b/src/librarian/librarian.c
@@ -294,7 +294,7 @@ int AddNeededLib_add(lib_t* maplib, needed_libs_t* neededlibs, library_t* deplib
             printf_log(LOG_DEBUG, "Failure to add lib linkmap\n");
             return 1;
         }
-        lm->l_addr = (Elf64_Addr)GetBaseAddress(my_context->elfs[lib->priv.n.elf_index]);
+        lm->l_addr = (Elf64_Addr)GetElfDelta(my_context->elfs[lib->priv.n.elf_index]);
         lm->l_name = lib->name;
         lm->l_ld = GetDynamicSection(my_context->elfs[lib->priv.n.elf_index]);
     }
diff --git a/src/librarian/library.c b/src/librarian/library.c
index e41588f6..4ed54096 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -895,7 +895,7 @@ void AddMainElfToLinkmap(elfheader_t* elf)
 {
     linkmap_t* lm = addLinkMapLib(NULL);    // main elf will have a null lib link
 
-    lm->l_addr = (Elf64_Addr)GetBaseAddress(elf);
+    lm->l_addr = (Elf64_Addr)GetElfDelta(elf);
     lm->l_name = my_context->fullpath;
     lm->l_ld = GetDynamicSection(elf);
 }