diff options
| author | 2000-10-13 05:21:10 +0000 | |
|---|---|---|
| committer | 2000-10-13 05:21:10 +0000 | |
| commit | 5c69b21e4643af24ee2da23272a739b5f174bd24 (patch) | |
| tree | 5401779572b2eb9af5180f16c76dc25687ba805d /usr.bin/make/error.c | |
| parent | Add secondary c++ shared library for testing purposes to verify (diff) | |
| download | wireguard-openbsd-5c69b21e4643af24ee2da23272a739b5f174bd24.tar.xz wireguard-openbsd-5c69b21e4643af24ee2da23272a739b5f174bd24.zip | |
Clean up static constructor/destructor discovery and calling. Instead
of relying on magic variable names, reqire that the library provide the
_init/_fini functions so that the linker will find them and create
the DT_INIT and DT_FINI sections of the .dynamic section of the shared library.
With the shared library providing the DT_INIT function pointer, it is
now possible to just check the init field and call it if defined, if not
defined no constructors are needed. This cleans up the code in ld.so greatly.
Diffstat (limited to 'usr.bin/make/error.c')
0 files changed, 0 insertions, 0 deletions
