opnsense-src/lib/libc
Jessica Clarke 877175a17a libc: Fix build on case-insensitive file systems
On case-insensitive file systems (most likely to be seen on macOS, where
it is the default), _Fork.o for the new POSIX _Fork function conflicts
with _fork.o for the PSEUDO file. This results in non-determinsitic
behaviour in terms of which ends up being present; if _Fork.o wins then
the build fails to link libc.so due to missing __sys_fork, and if
_fork.o wins then libc silently fails to include the implementation of
_Fork. A similar issue occurred in the past for C99's _Exit conflicting
with exit(2) and was fixed in cb1cb6a2a8, so this adds a fix based on
that.

As a longer-term solution it might be better to instead make the
generated files use a different prefix that's less likely to conflict
with other things (such as __sys_foo.o given they always contain that)
but that's a rather more invasive change.

Fixes:	49ad342cc1 ("Add _Fork()")
Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31895
2021-09-10 01:19:38 +01:00
..
aarch64
amd64
arm
capability
compat-43
db tools/build: Don't redefine open() for the linux bootstrap 2021-08-02 14:33:23 +01:00
gdtoa
gen libc tls: use TLS_DTV_OFFSET defined by rtld.h 2021-08-16 13:55:35 +03:00
gmon
i386
iconv
include Style 2021-08-03 21:19:32 +03:00
inet
isc
locale libc/locale: Use O_CLOEXEC when opening locale tables 2021-07-29 09:14:50 -04:00
md
mips
nameser
net Correct section reference for examples in RFC3542 2021-08-01 13:55:24 +01:00
nls
posix1e libc/posix1e: Add acl_extended_file_np() function. 2021-08-27 11:52:26 +03:00
powerpc
powerpc64
powerpcspe
quad
regex
resolv
riscv
rpc rpc(3): Correct a few common typos in source code comments 2021-08-22 08:16:09 +02:00
secure
softfloat
stdio getdelim(3): Fix losing data on [EAGAIN] 2021-09-02 11:26:26 -07:00
stdlib Fix null pointer subtraction in mergesort() 2021-08-27 19:46:18 +02:00
stdtime
string memcpy.3: remove BUGS section allowing overlapping strings 2021-08-24 09:58:10 -04:00
sys libc: Fix build on case-insensitive file systems 2021-09-10 01:19:38 +01:00
tests getdelim(3): Fix losing data on [EAGAIN] 2021-09-02 11:26:26 -07:00
uuid
x86 libc: vDSO timekeeping: Add pvclock support 2021-08-14 15:57:54 +03:00
xdr
yp
libc.ldscript
libc_nossp.ldscript
Makefile libc: Use the initial-exec TLS model 2021-07-15 22:41:10 -04:00
Makefile.depend
Makefile.depend.options
Versions.def