add a note that DEP is also called NX or nxcompat
authorLee <ler762@users.sourceforge.net>
Sun, 21 Mar 2021 20:41:34 +0000 (16:41 -0400)
committerLee <ler762@users.sourceforge.net>
Sun, 21 Mar 2021 20:41:34 +0000 (16:41 -0400)
and show how to check for the flag being set

windows/MYconfigure

index ad845b0..e0b993c 100755 (executable)
@@ -76,6 +76,10 @@ LDFLAGS="${LDFLAGS} -fstack-protector-strong"
 LDFLAGS="${LDFLAGS} -Wl,--nxcompat"
 # https://en.wikipedia.org/wiki/Data_Execution_Prevention
 #   Enable DEP with -Wl,--nxcompat
+# also called NX or nxcompat for "no execute"  see: https://en.wikipedia.org/wiki/NX_bit
+#   $ peflags -v privoxy.exe
+#   privoxy.exe: coff(0x0106[+executable_image,+line_nums_stripped,+32bit_machine]) pe(0x0140[+dynamicbase,+nxcompat])
+
 
 LDFLAGS="${LDFLAGS} -Wl,--dynamicbase,--export-all-symbols"
 # https://en.wikipedia.org/wiki/Address_space_layout_randomization