
This implements more of the dlfcn functionality. Most notably: * It's now possible to dlopen() libraries which were already loaded at program startup time. This does not cause those libraries to be loaded twice. * Errors are reported via dlerror() rather than by crashing the program. * Calls to the dl*() functions are thread-safe.
12 lines
293 B
C++
12 lines
293 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;
|