csu: add crtbrand.o dependency on sys/param.h

__FreeBSD_version is recorded in *crt1.o and crti.o via crtbrand.o.  Add
an explicit dependency to pick up __FreeBSD_version bumps.

Additional changes are required to fully plumb *crt1.o dependencies
through the build.

Reported by:	bapt
Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43417

(cherry picked from commit ed3563b0ac)
(cherry picked from commit 090674a3db)
This commit is contained in:
Ed Maste 2024-01-12 10:01:49 -05:00
parent 391d212c42
commit 6fc69ba38c

View File

@ -55,6 +55,9 @@ Scrt1.o: Scrt1_c.o ${CRT1OBJS}
${OBJCOPY} --localize-symbol _start1 ${.TARGET}
.endif
# __FreeBSD_version is recorded in crt1.o et al via crtbrand.
crtbrand.o: ${SRCTOP}/sys/sys/param.h
crtbegin.o: crtbegin.c
crtbeginS.o: crtbegin.c
crtbeginT.o: crtbegin.c