mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
libdyld: handle existing but undefined symbols during lookup.
This commit is contained in:
parent
36e03ec8a8
commit
6a1b0b342c
1 changed files with 5 additions and 1 deletions
|
@ -171,5 +171,9 @@ void *dyld_lookup(const char *symbol, struct dyld_info *info) {
|
||||||
index = info->hash.chain[index];
|
index = info->hash.chain[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
return (void*)(info->base + info->symtab[index].st_value);
|
Elf32_Addr value = info->symtab[index].st_value;
|
||||||
|
if(value != 0)
|
||||||
|
return (void*)(info->base + value);
|
||||||
|
else
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue