Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ELF uberalles, so move the files up out of common_elf | 2014-11-15 | 7 | -562/+0 | |
| | | | | ok miod@ deraadt@ | ||||
* | Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass the | 2013-12-28 | 2 | -2/+18 | |
| | | | | | | | | | | 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@ | ||||
* | Fix static linking of libpthread: have crt0 invoke __init_tcb() if it's | 2013-12-12 | 1 | -1/+6 | |
| | | | | | | defined and we don't think ld.so has already done the TCB setup. ok and much discussion miod@ | ||||
* | Merge the per-arch crt0.c files into common_elf/crt0.c, with MD macros in | 2013-12-03 | 1 | -0/+121 | |
| | | | | | | the md_init.h files. Worked out with and ok miod@; ok matthew@ | ||||
* | Remove excessive sys/cdefs.h inclusion | 2012-12-05 | 2 | -4/+4 | |
| | | | | ok guenther millert kettenis | ||||
* | Reverse the order that ctors and dtors are run in accordance with | 2012-09-08 | 2 | -14/+14 | |
| | | | | | | GCC's documentation. Fixes GNU C++'s init_priority attribute. ok miod | ||||
* | Add __guard_local as a hidden symbol to ld.so, kernel, and every | 2012-08-28 | 2 | -2/+6 | |
| | | | | | | 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 essential | 2010-05-01 | 4 | -19/+19 | |
| | | | | | | | 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@ | ||||
* | Don't specify mode(SI) attribute for __EH_FRAME_END__ as we have | 2009-07-14 | 1 | -2/+2 | |
| | | | | | | 32 bit ints on OpenBSD. ok kettenis@ | ||||
* | Add gcj java class registration hooks for gcc3 elf archs. From NetBSD | 2009-04-13 | 4 | -4/+49 | |
| | | | | | | with minor differences. okay kettenis@ drahn@ | ||||
* | Work-around a gcc3 -g bug causing debug ld.so to crash. | 2009-03-06 | 1 | -2/+2 | |
| | | | | okay kettenis@ drahn@ | ||||
* | Tag ELF shared libraries as OpenBSD. | 2009-02-04 | 1 | -1/+3 | |
| | | | | ok kurt@, drahn@, miod@ | ||||
* | 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. | 2007-09-03 | 2 | -2/+36 | |
| | |||||
* | Change __register_frame_info into a weakly defined symbol. | 2004-10-26 | 1 | -5/+8 | |
| | | | | ok drahn@, pval@, deraadt@ | ||||
* | Add support for DWARF2 exception handling. | 2004-10-10 | 2 | -2/+20 | |
| | | | | ok drahn@, millert@ | ||||
* | add finalized guard to destructor calls, to prevent multiple calls. | 2004-01-26 | 4 | -13/+22 | |
| | | | | | | | 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... | 2004-01-26 | 5 | -16/+43 | |
| | | | | ok drahn@, some time ago. | ||||
* | __init/__fini handling on ELF has not been correct. It is supposed to | 2004-01-08 | 4 | -21/+48 | |
| | | | | | | 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@ | ||||
* | correct array initializer size to be [1], not [0] fixes gcc3 libstdc++ error | 2003-12-28 | 1 | -3/+3 | |
| | | | | ok espie, millert | ||||
* | remove multi-line literals in __asm syntax to keep gcc3 happy | 2003-11-22 | 1 | -11/+9 | |
| | | | | henric@ henning@ ok | ||||
* | boring protos | 2003-06-26 | 1 | -5/+5 | |
| | |||||
* | add a newline at end of file. gcc3 rightfully complains if the file | 2003-03-31 | 1 | -2/+2 | |
| | | | | | | is not newline terminated. From Thorsten Glaser | ||||
* | 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. | 2002-02-16 | 4 | -16/+16 | |
| | |||||
* | Commonize csu code for elf systems, powerpc now no longer has it's own | 2001-05-28 | 2 | -0/+112 | |
| | | | | | | | | | | | | | | versions of these files. Fixed a bug in ld.so in this, instead of scheduling the fini of each of the shared libraries with atexit. schedule a function of ld.so itself and it will walk all of the open libraries when the program exits. otherwise a shared library could be dl_open()ed and then dl_close()d and then it would not be mapped for the atexit processing. TODO: What if atexit is not found (process did not link against libc?) Do shared libraries that are dl_closed have their global destructors run? | ||||
* | oops. | 2001-02-03 | 1 | -4/+3 | |
| | |||||
* | Schedule running of __fini in __init, not __start. | 2001-02-03 | 1 | -1/+2 | |
| | |||||
* | An OpenBSD tag doesn't hurt. | 2001-02-03 | 1 | -0/+1 | |
| | |||||
* | Add an OS note identifying OpenBSD binaries. | 2001-02-03 | 2 | -1/+23 | |
| | | | | This appears to be the standard way to do it. | ||||
* | Decruftification. | 2001-02-03 | 1 | -8/+1 | |
| | |||||
* | Create a common_elf directory with crtbegin and crtend that can | 2001-02-03 | 2 | -0/+125 | |
be shared between archs. |