about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-01-15 12:50:27 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-01-15 12:50:27 +0100
commit6268367b223ebff1045470f8ed4ba36d28cf152c (patch)
tree168883a7d65de89991d7cbb232f6cdcdf139821a /src/librarian
parent4c174a42f83c8374e3e57e275800d986c3079fd3 (diff)
downloadbox64-6268367b223ebff1045470f8ed4ba36d28cf152c.tar.gz
box64-6268367b223ebff1045470f8ed4ba36d28cf152c.zip
[ELFLOADER] Fixed some issue with COPY/GLOB_DATA symbol relocations
Diffstat (limited to 'src/librarian')
-rw-r--r--src/librarian/symbols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librarian/symbols.c b/src/librarian/symbols.c
index cb59430a..ddebbe75 100644
--- a/src/librarian/symbols.c
+++ b/src/librarian/symbols.c
@@ -230,8 +230,8 @@ int GetSymbolStartEnd(kh_mapsymbols_t* mapsymbols, const char* name, uintptr_t*
     versymbols_t * v = &kh_val(mapsymbols, k);
     versymbol_t* s = MatchVersion(v, ver, vername, 0, local, defver);
     if(s) {
-        *start = s->sym.offs;
-        *end = *start + s->sym.sz;
+        if(start) *start = s->sym.offs;
+        if(end) *end = *start + s->sym.sz;
         return 1;
     }
     return 0;