This commit is contained in:
Remzi Arpaci-Dusseau
2018-08-15 12:08:12 -05:00
parent 84018e8c2e
commit 13450777f0

View File

@@ -28,13 +28,13 @@ prompt> ./io
One issue with mem.c is that address space randomization is usually on by One issue with mem.c is that address space randomization is usually on by
default. To turn it off: default. To turn it off:
## macOS ### macOS
From [stackoverflow](stackoverflow.com/questions/23897963/documented-way-to-disable-aslr-on-os-x) From [stackoverflow](stackoverflow.com/questions/23897963/documented-way-to-disable-aslr-on-os-x)
Just compile/link as follows: Just compile/link as follows:
gcc -o mem mem.c -Wall -Wl,-no_pie gcc -o mem mem.c -Wall -Wl,-no_pie
## Linux ### Linux
From Giovanni Lagorio: From Giovanni Lagorio: