From 8435b9d411b25b2eb5c725063cc0b77da4c2efd4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 19 Sep 2025 20:55:07 -0400 Subject: kern/amd64: build: Ensure .a libs retain sections Signed-off-by: Ian Moffett --- src/sys/arch/amd64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/arch/amd64/Makefile b/src/sys/arch/amd64/Makefile index a8561c5..5951f08 100644 --- a/src/sys/arch/amd64/Makefile +++ b/src/sys/arch/amd64/Makefile @@ -14,7 +14,7 @@ ASMOBJECTS = $(ASMFILES:.S=.S.o) DEPS = $(CFILES:.c=.d) ASMDEPS = $(ASMFILES:.S=.S.d) OBJECTS = $(CFILES:%.c=%.o) -LD_FLAGS = -Tconf/sys.ld -L../../target -lkern +LD_FLAGS = -Tconf/sys.ld -L../../target --whole-archive -l:libkern.a --no-whole-archive .PHONY: all all: $(OBJECTS) $(ASMOBJECTS) -- cgit v1.2.3