mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
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.
13 lines
318 B
C++
13 lines
318 B
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibDl/dlfcn_integration.h>
|
|
|
|
// These are used by libdl and are filled in by the dynamic loader.
|
|
DlCloseFunction __dlclose;
|
|
DlOpenFunction __dlopen;
|
|
DlSymFunction __dlsym;
|
|
DlAddrFunction __dladdr;
|