| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
(w/ _dlctl reference) into static executables. It's all Mark's code so
put his preferred copyright on it.
ok kettenis@
|
|
|
|
|
| |
_libc___cxa_thread_atexit_impl reference on gcc architectures that breaks
the build.
|
|
|
|
|
|
|
| |
interface is also made available as __cxa_thread_atexit_impl to satisfy the
needs of GNU libstdc++.
ok guenther@, millert@
|
|
|
|
|
|
|
|
|
|
|
| |
stubs for the executable from crtbegin.o into libc, which lets them be
excluded from static links that don't use them.
For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini
sections for libc aren't called at the right times anyway, so it's good that
they're unused. libc.so just needs __guard_local and the .note.openbsd.ident
section, so add them to stack_protector.c for now (this will be improved)
"good time" deraadt@
|
|
|
|
|
|
| |
doesn't get pulled into all static executables
ok millert@ jca@
|
|
|
|
|
|
|
|
| |
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct
Switch regress/lib/libc/atexit/ to be built with -static so that it can
still access __atexit*
ok millert@ jca@
|
|
|
|
|
|
|
|
|
|
| |
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
|
|
|
|
|
|
|
| |
__atexit tables and touches global variables. From Srinavasa Nagaraju
through Android/Elliott Hughes.
ok tedu@, guenther@
|
|
|
|
|
| |
handlers. if this happens, restart the loop.
ok kettenis matthew millert miod
|
|
|
|
|
|
|
|
|
|
|
| |
The extra argument doesn't hurt genuine atexit handlers and this fixes a
bug where we didn't provide the argument (effectively passing garbage) for
functions registered with __cxa_atexit in the main executable.
Pointed out by Dmitriy Ivanov <dimitry@google.com> and Elliott Hughes
<enh@google.com>.
ok matthew@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
move the call_depth decrement so it happens unconditionally and can
still return to 0 when called with dso!=NULL.
ok millert
|
|
|
|
|
|
| |
invokes handlers registered with __cxa_atexit().
"seems right" deraadt@
|
|
|
|
| |
ok millert@ ray@
|
|
|
|
| |
object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
|
|
|
|
|
| |
originally reported by Gergely Kovacs; help from dhartmei@;
ok tedu@ millert@
|
| |
|
|
|
|
|
|
| |
Kill old files that are no longer compiled.
okay theo
|
|
|
|
|
| |
no longer needs initializing (we use mmap for malloc entirely now)
noticed by kjell, ok dhartmei, tested by me
|
|
|
|
| |
ok otto deraadt
|
|
|
|
| |
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
|
| |
|
|
|
|
|
| |
malloc.c gets the first mmap() call (since it depends on that, for its
sbrk(0) use). ok deraadt@
|
|
|
|
| |
first.
|
|
|
|
|
| |
function pointers from the outside will segfault. Idea, hints and feedback
from deraadt. ok deraadt.
|
|
|
|
| |
Make sure everything uses {SYS,}LIBC_SCCS properly
|
|
|