diff options
author | Frans Kaashoek <[email protected]> | 2022-08-15 19:02:19 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2022-08-15 19:02:19 -0400 |
commit | cef1b57d4a97f15e9858804e368f7928b579b88e (patch) | |
tree | 8f59e7986c6b69e08f2a8d4a3f5449a83e4cf7ea /Makefile | |
parent | 2175c6b0b667b13e09c710c36e4a3ae8fc7c97dc (diff) | |
download | xv6-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |