summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2022-08-15 19:02:19 -0400
committerFrans Kaashoek <[email protected]>2022-08-15 19:02:19 -0400
commitcef1b57d4a97f15e9858804e368f7928b579b88e (patch)
tree8f59e7986c6b69e08f2a8d4a3f5449a83e4cf7ea /Makefile
parent2175c6b0b667b13e09c710c36e4a3ae8fc7c97dc (diff)
downloadxv6-labs-cef1b57d4a97f15e9858804e368f7928b579b88e.tar.gz
xv6-labs-cef1b57d4a97f15e9858804e368f7928b579b88e.tar.bz2
xv6-labs-cef1b57d4a97f15e9858804e368f7928b579b88e.zip
Compile user binary to map text without W and data without X
Use the flags in elf header to set vm permissions Modify pgbug() so that usertests text segment is without W Add test to check app cannot write text segment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f0f40e..d7de428 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) -N -e _main -Ttext 0 -o $@ $^
+ $(LD) $(LDFLAGS) -verbose -e _main -Ttext 0 -o $@ $^
$(OBJDUMP) -S $@ > $*.asm
$(OBJDUMP) -t $@ | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > $*.sym