[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	drahn_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2000/10/12 23:21:11

Modified files:
	libexec/ld.so  : loader.c 

Log message:
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.