From 26591eea4ede16a627a8c972cef754e24c91ed8b Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 21 Mar 2021 16:41:34 -0400 Subject: [PATCH] add a note that DEP is also called NX or nxcompat and show how to check for the flag being set --- windows/MYconfigure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows/MYconfigure b/windows/MYconfigure index ad845b0a..e0b993cb 100755 --- a/windows/MYconfigure +++ b/windows/MYconfigure @@ -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 -- 2.39.2