:: commit 32aa82a1bd62c8b2b498f4966205e9ee4f28d113

mintsuki <mintsuki@protonmail.com> — 2021-03-08 02:08

parents: db20cc7580

misc: Fix output of limine_stage2only.elf in Makefile

diff --git a/stage23/Makefile b/stage23/Makefile
index bb4c4a65..f1699641 100644
--- a/stage23/Makefile
+++ b/stage23/Makefile
@@ -131,7 +131,7 @@ $(BUILDDIR)/limine.sys: $(BUILDDIR)/limine.elf
 
 $(BUILDDIR)/limine_nomap.elf: $(OBJ) $(BUILDDIR)/font.o $(BUILDDIR)/sys/smp_trampoline.o
 	$(CC) $^ $(LDFLAGS) $(INTERNAL_LDFLAGS) -Tlinker_nomap.ld -o $@
-	$(CC) $^ $(LDFLAGS) $(INTERNAL_LDFLAGS) -Wl,--gc-sections -Tlinker_stage2only.ld -o limine_stage2only.elf || \
+	$(CC) $^ $(LDFLAGS) $(INTERNAL_LDFLAGS) -Wl,--gc-sections -Tlinker_stage2only.ld -o $(BUILDDIR)/limine_stage2only.elf || \
 		( echo "This error means that stage 2 was trying to use stage 3 symbols before loading stage 3" && \
 		  false )
 
tab: 248 wrap: offon