opnsense-src/lib/libc
Jilles Tjoelker e73151eb82 libc: Always use our own copy of sys_errlist and sys_nerr (.so only).
This ensures strerror() and friends continue to work correctly even if a
(non-PIE) executable linked against an older libc imports sys_errlist (which
causes sys_errlist to refer to the executable's copy with a size fixed when
that executable was linked).

The executable's use of sys_errlist remains broken because it uses the
current value of sys_nerr and may access past the bounds of the array.

Different from the message "Using sys_errlist from executables is not
ABI-stable" on freebsd-arch, this change does not affect the static library.
There seems no reason to prevent overriding the error messages in the static
library.
2013-08-31 22:32:42 +00:00
..
amd64 libc: Access _logname_valid more efficiently. 2013-08-17 19:24:58 +00:00
arm
compat-43
db db: Use O_CLOEXEC instead of separate fcntl() call. 2013-08-13 19:20:50 +00:00
gdtoa
gen libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
gmon libc: Use O_CLOEXEC when writing gmon files (cc -pg). 2013-08-13 21:45:48 +00:00
i386 libc: Access _logname_valid more efficiently. 2013-08-17 19:24:58 +00:00
ia64
iconv Expose _citrus_bcs_trunc_rws_len for libintl's use. 2013-08-13 18:14:53 +00:00
include libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
inet
isc
locale
mips
nameser
net libc: Make various internal file descriptors from fopen() close-on-exec. 2013-08-23 13:59:47 +00:00
nls
posix1e libc: Make various internal file descriptors from fopen() close-on-exec. 2013-08-23 13:59:47 +00:00
powerpc Revert r253748,253749 2013-07-28 18:44:17 +00:00
powerpc64 Revert r253748,253749 2013-07-28 18:44:17 +00:00
quad
regex
resolv libc: Make various internal file descriptors from fopen() close-on-exec. 2013-08-23 13:59:47 +00:00
rpc
softfloat
sparc64
stdio libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
stdlib Make example more correct (errstr is a pointer, not boolean). 2013-08-18 10:33:46 +00:00
stdtime
string libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
sys Xref capsicum(4) and procdesc(4) from pdfork(2). 2013-08-28 20:00:25 +00:00
uuid
xdr
yp
libc.ldscript
Makefile
Versions.def