#
b722ba42 |
| 08-Jan-2022 |
guenther <guenther@openbsd.org> |
Prep .c files for removing the #includes from */archdep.h * replace #include "archdep.h" with #includes of what is used, pulling in "syscall.h", "util.h", and "archdep.h" as needed * delete #inc
Prep .c files for removing the #includes from */archdep.h * replace #include "archdep.h" with #includes of what is used, pulling in "syscall.h", "util.h", and "archdep.h" as needed * delete #include <sys/syscall.h> from syscall.h * only pull in <sys/stat.h> to the three files that use _dl_fstat(), forward declare struct stat in syscall.h for the others * NBBY is for <sys/select.h> macros; just use '8' in dl_printf.c * <machine/vmparam.h> is only needed on i386; conditionalize it * stop using __LDPGSZ: use _MAX_PAGE_SHIFT (already used by malloc.c) where necessary * delete other bogus #includes, order legit per style: <sys/*> then <*/*>, then <*>, then "*"
dir.c improvement from jsg@ ok and testing assistance deraadt@
show more ...
|
#
fa3953db |
| 15-Oct-2020 |
deraadt <deraadt@openbsd.org> |
make three mib[] arrays const, as was done in libc
|
#
fa9f1946 |
| 27-Mar-2020 |
matthieu <matthieu@openbsd.org> |
Add missing space in stack smash handler error message. ok kettenis@, deraadt@
|
#
466246de |
| 08-May-2019 |
deraadt <deraadt@openbsd.org> |
On retguard systems, remove the ld.so-local stack-protector handling functions because retguard uses hard-traps instead. ok mortimer.
|
#
4e496f3d |
| 09-Feb-2018 |
mortimer <mortimer@openbsd.org> |
Use a static chacha instance to fill randomdata sections. Avoids looping over a syscall for randomdata sections larger than 256B.
ok djm@ deraadt@ 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@
|
#
acb148b1 |
| 12-Aug-2016 |
deraadt <deraadt@openbsd.org> |
the slimmed down random functions inside ld.so are strict clones of the libc arc4random API, so call them _dl_{arc4random,arcrandombuf} ok tedu guenther
|
#
1b2af952 |
| 05-Aug-2016 |
tedu <tedu@openbsd.org> |
use a larger chunk for getentropy() and save some for next time. coalesces some syscalls instead of one per random number. ok deraadt
|
#
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)
|
#
702424ca |
| 20-Mar-2016 |
guenther <guenther@openbsd.org> |
Export environ and __progname, making the latter a copy of just the filename portion like crt0 does. This is prep for eliminating _dl_fixup_user_env() Mark almost everything in resolve.h as hidden,
Export environ and __progname, making the latter a copy of just the filename portion like crt0 does. This is prep for eliminating _dl_fixup_user_env() Mark almost everything in resolve.h as hidden, to improve code generation.
ok kettenis@ mpi@ "good time" deraadt@
show more ...
|
#
eeec8592 |
| 20-Jan-2015 |
deraadt <deraadt@openbsd.org> |
If _dl_progname exceeds half the syslog buffer, truncate it with "...", so that the remaining information is more visible ok kettenis miod
|
#
5b40abcf |
| 16-Jan-2015 |
deraadt <deraadt@openbsd.org> |
<sys/param.h> to <limits.h> conversion. Verified binaries ok millert, thanks to doug for process advice
|
#
ecbb3e85 |
| 09-Dec-2014 |
tedu <tedu@openbsd.org> |
avoid void arithmetic. from david carlier
|
#
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
|
#
ac035b62 |
| 06-Jul-2014 |
otto <otto@openbsd.org> |
rm unneeded includes; prompted (partly) by kettenis@
|
#
6dbd4efc |
| 06-Jul-2014 |
otto <otto@openbsd.org> |
move from sysclt(KERN_ARND) to getentropy(2); ok miod@, kettenis@
|
#
c827e20b |
| 21-Jun-2014 |
otto <otto@openbsd.org> |
Move to a non-zeroing _dl_malloc, a _dl_calloc and _dl_reallocarry and fix _dl_strdup to return NULL instead of crash; ok deraadt@
|
#
f5484333 |
| 14-Jun-2014 |
miod <miod@openbsd.org> |
Make _dl_randombuf invoke sysctl KERN_ARND in 256-byte chunks, for this is (currently) the largest output you can get from it.
ok deraadt@
|
#
cb0b31f9 |
| 05-Jun-2014 |
otto <otto@openbsd.org> |
Move to (slightly stripped) version of libc malloc; ok deraadt@
|
#
81526992 |
| 23-Jan-2014 |
deraadt <deraadt@openbsd.org> |
improve some types
|
#
1ca77dee |
| 28-Dec-2013 |
deraadt <deraadt@openbsd.org> |
Do not need __guard anymore Discussion with miod ok kettenis
|
#
2f86c0ef |
| 13-Nov-2013 |
deraadt <deraadt@openbsd.org> |
prototype & void * math cleanup ok guenther
|
#
f0fbce36 |
| 09-Jun-2013 |
miod <miod@openbsd.org> |
Constify the mib argument of sysctl(). ok matthew@ millert@
|
#
c99d8a85 |
| 23-Jan-2013 |
miod <miod@openbsd.org> |
Cache flush .plt after updating its pointers to .got during the initial object relocation, if loaded at a different address than the one it was compiled for; unsurprisingly fixes some spurious crashe
Cache flush .plt after updating its pointers to .got during the initial object relocation, if loaded at a different address than the one it was compiled for; unsurprisingly fixes some spurious crashes.
show more ...
|