summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2022-08-23 10:54:40 -0400
committerFrans Kaashoek <[email protected]>2022-08-23 10:54:40 -0400
commit4cd4d194b8827af4971a81ad28968499925f884f (patch)
tree49eae2e3938a4e6676895a10253b419d729f3bcd /Makefile
parentcef1b57d4a97f15e9858804e368f7928b579b88e (diff)
downloadxv6-labs-4cd4d194b8827af4971a81ad28968499925f884f.tar.gz
xv6-labs-4cd4d194b8827af4971a81ad28968499925f884f.tar.bz2
xv6-labs-4cd4d194b8827af4971a81ad28968499925f884f.zip
Use simple linker script to force data segment to be page aligned
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d7de428..39a99d7 100644
--- a/Makefile
+++ b/Makefile
@@ -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