aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2020-08-01 17:30:42 +0200
committerMarvin Borner2020-08-01 17:30:42 +0200
commit928bf3f29d7a8b2163a3c1d5c15554d5b42c606b (patch)
tree16924d82ad79f609ee5966b165050bbcace90b9e /src/Makefile
parent9a146c325ac0538be807e904d7c35d0a73f9fc5e (diff)
Some entry position optimizations
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 475d792..37ad049 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -27,7 +27,7 @@ AS = nasm
CSFLAGS = -mpreferred-stack-boundary=2 -fno-asynchronous-unwind-tables -Os
# TODO: Use lib as external library
-CFLAGS = $(CSFLAGS) -Wall -Wextra -nostdlib -nostdinc -ffreestanding -fno-builtin -mgeneral-regs-only -std=c99 -m32 -pedantic-errors -Ilib/inc/ -Iinc/
+CFLAGS = $(CSFLAGS) -Wall -Wextra -nostdlib -nostdinc -ffreestanding -fno-builtin -mgeneral-regs-only -std=c99 -m32 -pedantic-errors -Wl,-ekernel_main -Ilib/inc/ -Iinc/
ASFLAGS = -f elf32 -O3
@@ -42,5 +42,5 @@ all: compile
compile: $(COBJS)
@mkdir -p ../build/
@$(AS) -f bin entry.asm -o ../build/boot.bin
- @$(LD) -N -emain -Ttext 0x00050000 -o ../build/kernel.bin $(COBJS) --oformat binary
+ @$(LD) -N -ekernel_main -Ttext 0x00050000 -o ../build/kernel.bin $(COBJS) --oformat binary
@$(CC) $(CFLAGS) -o ../build/debug.o $(COBJS)