diff options
author | Fabian Dellwing <fabian.dellwing@mbconnectline.de> | 2023-05-03 11:49:31 +0200 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-05-05 02:19:05 +0200 |
commit | 36a26d7fa80bc9c72b19442912d8967f448368ff (patch) | |
tree | e995c47a95c457694964ce380624dcf68a92d1dc /Userland/Libraries/LibELF | |
parent | 87e95ceb6994d4e8463dc60737eeaab73941d70e (diff) | |
download | serenity-36a26d7fa80bc9c72b19442912d8967f448368ff.zip |
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
Diffstat (limited to 'Userland/Libraries/LibELF')
-rw-r--r-- | Userland/Libraries/LibELF/DynamicLinker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLinker.cpp b/Userland/Libraries/LibELF/DynamicLinker.cpp index 549d3cf809..280dd299e5 100644 --- a/Userland/Libraries/LibELF/DynamicLinker.cpp +++ b/Userland/Libraries/LibELF/DynamicLinker.cpp @@ -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); |