[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:14:03

Modified files:
	lib/csu/powerpc: Makefile crtbeginS.c 

Log message:
Changes to the powerpc startup files to work in a more typical ELF
manner. the linker knows about the magic function _init and _fini
and will create a .dynamic tag to point to those symbols in the
executable/shared libraries. Take advantage of that fact to allow
ld.so to easily find the appropriate ctors/dtors calls for shared libraries

Since the crtbeginS.c now contains executable code, it must be compiled
with -fPIC. Rename the __init and __fini functions to _init/_fini so
the linker will locate them.