git: 79fc0a5b5036 - stable/13 - mips: Include CCLDFLAGS when linking kernel.tramp.bin
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 18:19:11 UTC
The branch stable/13 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=79fc0a5b50361042849766c7ef8fb0766c7f4e83
commit 79fc0a5b50361042849766c7ef8fb0766c7f4e83
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-12-15 18:16:54 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 18:16:54 +0000
mips: Include CCLDFLAGS when linking kernel.tramp.bin
This ensures we pick up -fuse-ld/--ld-path for external toolchains
rather than trying to use the default system linker, which may not
exist (e.g. on macOS).
This is a direct commit to stable/13 as mips no longer exists in main.
---
sys/conf/Makefile.mips | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/conf/Makefile.mips b/sys/conf/Makefile.mips
index 3610d5e5d5d2..d3bb4b17685b 100644
--- a/sys/conf/Makefile.mips
+++ b/sys/conf/Makefile.mips
@@ -76,7 +76,7 @@ ${KERNEL_KO}.tramp.bin: ${KERNEL_KO} $S/$M/$M/elf_trampoline.c \
-g --strip-symbol '$$t' ${FULLKERNEL} ${KERNEL_KO}.tmp
sed -e s/${KERNLOADADDR}/${TRAMPLOADADDR}/ -e s/" + SIZEOF_HEADERS"// \
${LDSCRIPT_NAME} > ${LDSCRIPT_NAME}.tramp.noheader
- ${CC} -O -nostdlib -I. -I$S ${TRAMP_EXTRA_FLAGS} -Xlinker \
+ ${CC} ${CCLDFLAGS} -O -nostdlib -I. -I$S ${TRAMP_EXTRA_FLAGS} -Xlinker \
-T -Xlinker ${LDSCRIPT_NAME}.tramp.noheader \
-DKERNNAME="\"${KERNEL_KO}.tmp\"" -DELFSIZE=${TRAMP_ELFSIZE} \
-fno-asynchronous-unwind-tables \