Use simple linker script to force data segment to be page aligned

This commit is contained in:
Frans Kaashoek 2022-08-23 10:54:40 -04:00
parent cef1b57d4a
commit 4cd4d194b8
3 changed files with 43 additions and 9 deletions

View file

@ -90,7 +90,7 @@ tags: $(OBJS) _init
ULIB = $U/ulib.o $U/usys.o $U/printf.o $U/umalloc.o
_%: %.o $(ULIB)
$(LD) $(LDFLAGS) -verbose -e _main -Ttext 0 -o $@ $^
$(LD) $(LDFLAGS) -T $U/user.ld -o $@ $^
$(OBJDUMP) -S $@ > $*.asm
$(OBJDUMP) -t $@ | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > $*.sym