summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-06 17:40:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-06 22:16:11 +0200
commit89a38b72b7181b103aa524e8abd3fe98c8c75864 (patch)
tree3b71cde96160281d7d3c26468d53f88377d4760a /Userland/Libraries/LibC
parentf82aa87d141a27271a3494fb734b5a9fc3ee4930 (diff)
downloadserenity-89a38b72b7181b103aa524e8abd3fe98c8c75864.zip
LibC+LibELF: Implement dladdr()
This implements the dladdr() function which lets the caller look up the symbol name, symbol address as well as library name and library base address for an arbitrary address.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/dlfcn.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/dlfcn.cpp b/Userland/Libraries/LibC/dlfcn.cpp
index 73e54df798..41c13a5f92 100644
--- a/Userland/Libraries/LibC/dlfcn.cpp
+++ b/Userland/Libraries/LibC/dlfcn.cpp
@@ -10,3 +10,4 @@
DlCloseFunction __dlclose;
DlOpenFunction __dlopen;
DlSymFunction __dlsym;
+DlAddrFunction __dladdr;