mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Userland: Fix wrong signature of dladdr
This function is supposed to take a `const void *addr` as first parameter, but we took a `void *addr`. https://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/baselib-dladdr-3.html
This commit is contained in:
parent
87e95ceb69
commit
36a26d7fa8
4 changed files with 5 additions and 5 deletions
|
@ -64,7 +64,7 @@ static DeprecatedString s_loader_pledge_promises;
|
|||
static Result<void, DlErrorMessage> __dlclose(void* handle);
|
||||
static Result<void*, DlErrorMessage> __dlopen(char const* filename, int flags);
|
||||
static Result<void*, DlErrorMessage> __dlsym(void* handle, char const* symbol_name);
|
||||
static Result<void, DlErrorMessage> __dladdr(void* addr, Dl_info* info);
|
||||
static Result<void, DlErrorMessage> __dladdr(void const* addr, Dl_info* info);
|
||||
|
||||
Optional<DynamicObject::SymbolLookupResult> DynamicLinker::lookup_global_symbol(StringView name)
|
||||
{
|
||||
|
@ -552,7 +552,7 @@ static Result<void*, DlErrorMessage> __dlsym(void* handle, char const* symbol_na
|
|||
return symbol.value().address.as_ptr();
|
||||
}
|
||||
|
||||
static Result<void, DlErrorMessage> __dladdr(void* addr, Dl_info* info)
|
||||
static Result<void, DlErrorMessage> __dladdr(void const* addr, Dl_info* info)
|
||||
{
|
||||
VirtualAddress user_addr { addr };
|
||||
pthread_mutex_lock(&s_loader_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue