aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-09-11 19:48:15 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-09-11 19:48:15 -0700
commit9eda71d78ed4c1dc2e86f07a3be7452d307a218f (patch)
treeaae5f92b8b222e3bc4217b21ddece79c62cc3ec2 /configure
parent3ccbeca6a9e8d8b066eda28583765d8e087f3da4 (diff)
downloadriscv-pk-9eda71d78ed4c1dc2e86f07a3be7452d307a218f.zip
riscv-pk-9eda71d78ed4c1dc2e86f07a3be7452d307a218f.tar.gz
riscv-pk-9eda71d78ed4c1dc2e86f07a3be7452d307a218f.tar.bz2
Don't assume null pointers can't be dereferenced
This option breaks vm_init's access to word 0 to obtain the memory capacity.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ceeae8d..be38182 100755
--- a/configure
+++ b/configure
@@ -3951,7 +3951,7 @@ fi
# Default compiler flags
#-------------------------------------------------------------------------
-CFLAGS="-Wall -Os -std=gnu99 -Wno-unused -Wno-attributes"
+CFLAGS="-Wall -Os -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks"
LIBS="-lc -lgcc"