ld.so: Set values in dynamic symbol tables when linking

This commit is contained in:
K. Lange 2021-09-24 00:12:04 +09:00
parent 3e8f2ccb9f
commit 6fd05ef013
1 changed files with 1 additions and 0 deletions

View File

@ -446,6 +446,7 @@ static int object_relocate(elf_t * object) {
symname = (char *)((uintptr_t)object->dyn_string_table + sym->st_name);
if (symname && hashmap_has(dumb_symbol_table, symname)) {
x = (uintptr_t)hashmap_get(dumb_symbol_table, symname);
sym->st_value = x;
} else {
/* This isn't fatal, but do log a message if debugging is enabled. */
TRACE_LD("Symbol not found: %s", symname);