Mercurial > lcfOS
diff cos/kernel/Makefile @ 34:8012221dd740
Fixes for uninitialized data. This causes problems on real machines
author | windel |
---|---|
date | Mon, 16 Jan 2012 13:46:06 +0100 |
parents | d8185ddb6c7b |
children | 91f91ff07ea8 |
line wrap: on
line diff
--- a/cos/kernel/Makefile Sun Jan 15 13:39:49 2012 +0100 +++ b/cos/kernel/Makefile Mon Jan 16 13:46:06 2012 +0100 @@ -4,14 +4,14 @@ CRT0 = goto64.o -CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ +CFLAGS = -g -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ -fno-builtin -mcmodel=large -Wall -Wextra -Werror OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \ klib.o malloc.o task.o mm.o timer.o fs.o initrd.o lcfos.bin: $(CRT0) $(OBJECTS) link.ld - ld -M -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS) + ld -g -T link.ld -s --cref -Map=kernel.map -o lcfos.bin $(CRT0) $(OBJECTS) %.o : %.asm nasm -f elf64 -o $@ $<