#
f4b4f15b |
| 01-Jul-2019 |
kettenis <kettenis@openbsd.org> |
Remove stray comma.
ok deraadt@, visa@
|
#
c0197e40 |
| 10-May-2019 |
guenther <guenther@openbsd.org> |
ld.so boot cleanup support: - put functions and data which are only used before calling the executable's start function into their own page-aligned segments for unmapping (only done on amd64,
ld.so boot cleanup support: - put functions and data which are only used before calling the executable's start function into their own page-aligned segments for unmapping (only done on amd64, arm64, armv7, powerpc, and sparc64 so far) - pass .init_array and .preinit_array functions an addition argument which is a callback to get a structure which includes a function that frees the boot text and data - sometimes delay doing RELRO processing: for a shared-object marked DF_1_INITFIRST do it after the object's .init_array, for the executable do it after the .preinit_array - improve test-ld.so to link against libpthread and trigger its initialization late libc changes to use this will come later
ok kettenis@
show more ...
|
#
d6979ba5 |
| 27-Aug-2017 |
deraadt <deraadt@openbsd.org> |
Replace heaps of hand-written syscall stubs with a simpler framework which is largely MI. ok visa kettenis
|
#
3b50b772 |
| 24-Jan-2017 |
guenther <guenther@openbsd.org> |
On fatal errors, kill ourselves with thrkill(0,9,NULL) instead of simply exiting, via helper functions _dl_die(), _dl_diedie(), and _dl_oom().
prompted by a complaint from jsing@ ok jsing@ deraadt@
|
#
96d30987 |
| 28-Aug-2016 |
guenther <guenther@openbsd.org> |
ld.so doesn't need gettimeofday or lstat stubs any more
ok deraadt@
|
#
fe38b55c |
| 07-May-2016 |
guenther <guenther@openbsd.org> |
Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an
Use a Thread Information Block in both single and multi-threaded programs. This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!
Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now!
Clean up libpthread's symbol exports like libc.
On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.
Testing by various, particularly sthen@ and patrick@ ok kettenis@
show more ...
|
#
46afc4a4 |
| 21-Mar-2016 |
bluhm <bluhm@openbsd.org> |
Rename the system call sendsyslog2 to sendsyslog. Keep the old one as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
|
#
606620c4 |
| 21-Mar-2016 |
guenther <guenther@openbsd.org> |
Switch ld.so's stack smash handler from sendsyslog to sendsyslog2 and pass the LOG_CONS flag like libc's handler.
ok deraadt@ bluhm@ (who had a similar diff)
|
#
f9438ff0 |
| 15-Nov-2015 |
deraadt <deraadt@openbsd.org> |
ldd(1) sets environment variable LD_TRACE_LOADED_OBJECTS to tell ld.so that it should show information about the program it loads, rather than run it. In that specific case, ld.so can pledge to "std
ldd(1) sets environment variable LD_TRACE_LOADED_OBJECTS to tell ld.so that it should show information about the program it loads, rather than run it. In that specific case, ld.so can pledge to "stdio rpath" to ensure that code path in ld.so has no bugs. Yes, a pledge in ld.so.... who'd have thought! ok guenther
show more ...
|
#
af5c7238 |
| 19-Sep-2015 |
guenther <guenther@openbsd.org> |
kbind has eliminated the need for and use of the bind lock. Delete it, the the callback, and the sigprocmask stub. Keep around the DL_SETBINDLCK case until libpthread stops using it.
discussed with
kbind has eliminated the need for and use of the bind lock. Delete it, the the callback, and the sigprocmask stub. Keep around the DL_SETBINDLCK case until libpthread stops using it.
discussed with miod@ at l2k15 ok kettenis@
show more ...
|
#
7fac78ed |
| 19-Sep-2015 |
kettenis <kettenis@openbsd.org> |
Make bootstrapping code compatible with the Secure-PLT ABI.
ok guenther@
|
#
fd0d9412 |
| 13-Sep-2015 |
guenther <guenther@openbsd.org> |
Rename __sysctl syscall to just sysctl, as the userland wrapper is no longer necessary
ok deraadt@ jsing@
|
#
1f6e7696 |
| 01-Jun-2015 |
miod <miod@openbsd.org> |
In the lazy binding routine, make sure we actually allocate the stack we need, instead of corrupting the caller's stack by mistake.
This fixes the mysterious segfaults in __powerpc_read_tcb() report
In the lazy binding routine, make sure we actually allocate the stack we need, instead of corrupting the caller's stack by mistake.
This fixes the mysterious segfaults in __powerpc_read_tcb() reported on earlier G3 systems - more recent processors have been luckier...
ok deraadt@
show more ...
|
#
9df30356 |
| 14-Jul-2014 |
deraadt <deraadt@openbsd.org> |
Now that we have sendsyslog(2), we can directly use it in the (previously completely retarded) stack_smash_handler of ld.so ok beck miod tedu
|
#
f7500ddd |
| 09-Jul-2014 |
guenther <guenther@openbsd.org> |
_dl_fcntl() is no longer used; kill the stubs
ok otto@ miod@
|
#
6dbd4efc |
| 06-Jul-2014 |
otto <otto@openbsd.org> |
move from sysclt(KERN_ARND) to getentropy(2); ok miod@, kettenis@
|
#
72047279 |
| 05-Jul-2014 |
miod <miod@openbsd.org> |
Implement _dl_mmap as direct mmap(2) wrapper, without needing to use __syscall(2) - calling convention will conveniently provide the padding argument.
|
#
f68e9961 |
| 05-Jul-2014 |
miod <miod@openbsd.org> |
Add more sugar to build syscall stubs, and turn them from inlines to real entry points; also, make sure syscall failures return -errno rather than -1.
|
#
2bb29cc7 |
| 23-Dec-2013 |
kettenis <kettenis@openbsd.org> |
Make ld.so pass its cleanup handler in r7 as required by the PowerPC System V ABI, and stop calling atexit(4) directly from ld.so on powerpc.
|
#
5b3abd28 |
| 23-Dec-2013 |
kettenis <kettenis@openbsd.org> |
Fix indentation.
|
#
f5fc0dce |
| 31-Dec-2012 |
miod <miod@openbsd.org> |
Spell `calculation' correctly.
|
#
09075f47 |
| 09-Jul-2003 |
drahn <drahn@openbsd.org> |
changes to ld.so to be compatible with newer binutils, requires slight changes in the startup code on most archs. ok art@ brad@
|
#
5d1c74ea |
| 09-Jun-2003 |
deraadt <deraadt@openbsd.org> |
pefo 3/4 licence cleanups
|
#
de33d14b |
| 26-Feb-2003 |
drahn <drahn@openbsd.org> |
Initialized the ABI stated 'cleanup' parameter to _start. This parameter is not used, but is now initialized to a valid value.
|
#
896cf611 |
| 02-Feb-2003 |
deraadt <deraadt@openbsd.org> |
knf & ansi; drahn ok
|