summaryrefslogtreecommitdiffstats
path: root/lib/csu/common_elf/crtbegin.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ELF uberalles, so move the files up out of common_elfguenther2014-11-151-182/+0
| | | | ok miod@ deraadt@
* Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass thekettenis2013-12-281-1/+9
| | | | | | | | | | right __dso_handle and have dlopen'ed shared objects run their atexit handlers when they get unloaded. This is what Linux does, and several ports depend on this behaviour (and will crash upon exit without this chang). Based on an earlier diff from matthew@ Tested by ajacoutot@ ok deraadt@
* Reverse the order that ctors and dtors are run in accordance withmatthew2012-09-081-7/+7
| | | | | | GCC's documentation. Fixes GNU C++'s init_priority attribute. ok miod
* Add __guard_local as a hidden symbol to ld.so, kernel, and everymatthew2012-08-281-1/+3
| | | | | | executable and DSO (via crtbegin.c/crtbeginS.c). Not used yet, but needed before GCC can start emitting -fstack-protector code that uses them instead of __guard.
* Sprinkle a few __used markers to prevent gcc4 from throwing away essentialkettenis2010-05-011-5/+5
| | | | | | | bits of code and data. With this change gcc4 builds usable crt*.o on sparc64, other architectures probably need some more love. ok marco@, jsg@
* Add gcj java class registration hooks for gcc3 elf archs. From NetBSDkurt2009-04-131-1/+18
| | | | | | with minor differences. okay kettenis@ drahn@
* Add __cxa_atexit() support for gcc3. This provides support for shared object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.millert2007-09-031-1/+14
|
* Change __register_frame_info into a weakly defined symbol.kettenis2004-10-261-5/+8
| | | | ok drahn@, pval@, deraadt@
* Add support for DWARF2 exception handling.kettenis2004-10-101-1/+16
| | | | ok drahn@, millert@
* add finalized guard to destructor calls, to prevent multiple calls.espie2004-01-261-5/+10
| | | | | | | stop most kde apps from burping all over the place on exit, which means that, somehow, our destructors get registered twice... :-( Okay drahn@
* small clean-up: typedef to desambiguate const, prototypes...espie2004-01-261-5/+6
| | | | ok drahn@, some time ago.
* __init/__fini handling on ELF has not been correct. It is supposed todrahn2004-01-081-13/+24
| | | | | | be a section which code stubs (branches) can be added to initialize/destructor This adds MD stubs to allow this to operate as expected. should fix wine and behave according to ELF specs. ok miod@
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* oops.art2001-02-031-4/+3
|
* Schedule running of __fini in __init, not __start.art2001-02-031-1/+2
|
* Add an OS note identifying OpenBSD binaries.art2001-02-031-1/+3
| | | | This appears to be the standard way to do it.
* Decruftification.art2001-02-031-8/+1
|
* Create a common_elf directory with crtbegin and crtend that canart2001-02-031-0/+112
be shared between archs.