summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAustin Clements <[email protected]>2014-10-03 09:39:09 -0400
committerAustin Clements <[email protected]>2014-10-03 09:39:09 -0400
commit0dd991dd209605277489d4f5a6881dd77ab4f986 (patch)
treeb37c0f7af4d162e78cc1550d805c65057ac39902 /Makefile
parent053082fbed145108b811978a0cc0558afcb909ac (diff)
downloadxv6-labs-0dd991dd209605277489d4f5a6881dd77ab4f986.tar.gz
xv6-labs-0dd991dd209605277489d4f5a6881dd77ab4f986.tar.bz2
xv6-labs-0dd991dd209605277489d4f5a6881dd77ab4f986.zip
Fix kernelmemfs linking
Commit 9aa0337d introduced a linker script for linking the kernel image, but only changed the kernel target to use it. kernelmemfs was still using the old linker command line arguments, which weren't sufficient.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23b2fba..491382d 100644
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,7 @@ kernel: $(OBJS) entry.o entryother initcode kernel.ld
# needing a scratch disk.
MEMFSOBJS = $(filter-out ide.o,$(OBJS)) memide.o
kernelmemfs: $(MEMFSOBJS) entry.o entryother initcode fs.img
- $(LD) $(LDFLAGS) -Ttext 0x100000 -e main -o kernelmemfs entry.o $(MEMFSOBJS) -b binary initcode entryother fs.img
+ $(LD) $(LDFLAGS) -T kernel.ld -o kernelmemfs entry.o $(MEMFSOBJS) -b binary initcode entryother fs.img
$(OBJDUMP) -S kernelmemfs > kernelmemfs.asm
$(OBJDUMP) -t kernelmemfs | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > kernelmemfs.sym