Merge branch 'freebsd/current/main' into hardened/current/master

This commit is contained in:
HardenedBSD Sync Services 2024-02-07 18:01:37 -07:00
commit 52b4983b96
No known key found for this signature in database
6 changed files with 9 additions and 8 deletions

View File

@ -62,7 +62,6 @@ CFLAGS+= -ftls-model=initial-exec
#
LDFLAGS+= -nodefaultlibs
LIBADD+= compiler_rt
LIBADD+= sys
LDFLAGS+=-Wl,--auxiliary,libsys.so.7

View File

@ -14,8 +14,6 @@ MK_LTOLIB= no
LIB=thr
SHLIB_MAJOR= 3
LIBADD= sys
NO_WTHREAD_SAFETY=1
NO_WCAST_ALIGN.gcc=1 # for gcc 4.2
CFLAGS+=-DPTHREAD_KERNEL
@ -48,6 +46,7 @@ CFLAGS+=-D_PTHREAD_FORCED_UNWIND
.endif
LDFLAGS+=-Wl,-znodelete
LDFLAGS+=-Wl,--auxiliary,libsys.so.7
VERSION_DEF=${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS=${.CURDIR}/pthread.map
@ -77,7 +76,7 @@ LIBSYS_SRCTOP= ${.CURDIR:H}/libsys
.else
.PATH: ${LIBSYS_SRCTOP}
.endif
STATICOBJS+= _umtx_op_err.o
OBJS+= _umtx_op_err.o
.if ${MK_INSTALLLIB} != "no"
SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a

View File

@ -298,6 +298,9 @@ FBSDprivate_1.0 {
/* ABI bug workaround, indicate that pli->rtli_version is valid */
_pli_rtli_version;
/* Expose stub for libsys filter */
_umtx_op_err;
};
FBSD_1.1 {

View File

@ -144,7 +144,7 @@ CRUNCH_PROGS_usr.sbin+= zdb
CRUNCH_LIBS+= -l80211 -lalias -lcam -lncursesw -ldevstat -lipsec -llzma
.if ${MK_ZFS} != "no"
CRUNCH_LIBS+= -lavl -lpthread -lsys -luutil -lumem -ltpool -lspl -lrt
CRUNCH_LIBS+= -lavl -lpthread -luutil -lumem -ltpool -lspl -lrt
CRUNCH_LIBS_zfs+= ${LIBBE} \
${LIBZPOOL} \
${LIBZFS} \
@ -158,7 +158,7 @@ CRUNCH_LIBS_zpool+= ${CRUNCH_LIBS_zfs}
CRUNCH_LIBS_zdb+= ${CRUNCH_LIBS_zfs}
.else
# liblzma needs pthread
CRUNCH_LIBS+= -lpthread -lsys
CRUNCH_LIBS+= -lpthread
.endif
CRUNCH_LIBS+= -lgeom -lbsdxml -lkiconv
.if ${MK_OPENSSL} == "no"

View File

@ -404,7 +404,7 @@ _DP_xo= util
_DP_ztest= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp
# The libc dependencies are not strictly needed but are defined to make the
# assert happy.
_DP_c= sys compiler_rt
_DP_c= compiler_rt
# Use libssp_nonshared only on i386 and power*. Other archs emit direct calls
# to __stack_chk_fail, not __stack_chk_fail_local provided by libssp_nonshared.
.if ${MK_SSP} != "no" && \

View File

@ -73,7 +73,7 @@
* cannot include sys/param.h and should only be updated here.
*/
#undef __FreeBSD_version
#define __FreeBSD_version 1500012
#define __FreeBSD_version 1500013
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,