• Home
Name Date Size #Lines LOC

..--

README.mdD06-Mar-20251.2 KiB199

cfi.cD06-Mar-202522.3 KiB526357

cfi.hD06-Mar-20251.4 KiB328

dynlink.cD06-Mar-2025184.3 KiB6,3765,513

dynlink_rand.cD06-Mar-20256.2 KiB247210

dynlink_rand.hD06-Mar-20252.6 KiB9862

ld_log.cD06-Mar-20253.2 KiB12798

ld_log.hD06-Mar-20252.2 KiB7546

namespace.cD06-Mar-202517.7 KiB613540

namespace.hD06-Mar-20253.6 KiB10867

ns_config.cD06-Mar-202519.8 KiB680582

ns_config.hD06-Mar-20252.2 KiB8149

strops.cD06-Mar-20253.1 KiB138106

strops.hD06-Mar-20251.2 KiB4824

zip_archive.hD06-Mar-20253.9 KiB12166

README.md

1## Dynamic Linker Namespace
2
3The dynamic linker provides the namespace mechanism which is based on configures and apis.
4
5Shared libraries can be isolated in different  namespaces so that libraries with same library name but with different symbols won't conflict. On the other hand, the namespace mechanism provides the flexibility so that some shared libraries can be exported by a linker namespace and used by another linker namespace.
6
7
8### How does it work
9
10There are two ways to use the linker namespace:
11
121. Modify and save the namespace configure file </etc/ld-musl-namespace-arm.ini> or </etc/ld-musl-namespace-aarch64.ini> base on architecture. When it does not exist or is filled in, a default namespace will be created.
13
142. Use the apis of namespace in head file <dlfcn.h>, to create a namespace, to set search paths of library, or to use exported libraries of another namespace by inheriting it.
15
16### Usage example
17
18Test usages show some examples of using the linker namespace. The file <ld-musl-namespace-arm.ini> or <ld-musl-namespace-aarch64.ini> in config directory is configures for test. The file <libc-test/src/functionalext/dlns/> gives usages of how apis and configures work.
19