From 70117880871d41de491e3486058e9856ad442967 Mon Sep 17 00:00:00 2001
From: Ian Moffett <ian@osmora.org>
Date: Tue, 27 Feb 2024 20:05:56 -0500
Subject: build: Fix linking of symbol table

Signed-off-by: Ian Moffett <ian@osmora.org>
---
 Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 6622deb..61b11e3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -92,7 +92,8 @@ base/boot/hyra-kernel: $(KERNEL_OBJECTS) $(KERNEL_ASMOBJECTS)
 	tools/ksyms sys/kern/ksyms.c base/boot/hyra-kernel
 	# === Generating symbols ===
 	$(CC) -c $(KERNEL_CFLAGS) $(KERNEL_DEFINES) sys/kern/ksyms.c -o sys/kern/ksyms.o
-	$(LD) $(KERNEL_LDFLAGS) $(KERNEL_OBJECTS) $(KERNEL_ASMOBJECTS) -o base/boot/hyra-kernel
+	$(LD) $(KERNEL_LDFLAGS) $(KERNEL_OBJECTS) $(KERNEL_ASMOBJECTS) \
+		sys/kern/ksyms.o -o base/boot/hyra-kernel
 	cd base/; tar cvf ../initramfs.tar * &> /dev/null
 	$(PROMPT) " RAMFS " $(shell pwd)/initramfs.tar
 	# === Building ISO ===
-- 
cgit v1.2.3