Hi everyone,

I need to export some Go function as a windows/amd64 DLL which have ASLR 
and High Entropy VA protections enabled.

I'm currently building the binary using go 1.15 and the command `go build 
-buildmode=c-shared .`, which generates a DLL with the NX flag but without 
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE nor 
IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA.

As per https://go-review.googlesource.com/c/go/+/214397/ go 1.15 seems to 
support -buildmode=pie in windows, but I'm not sure if it ca also be 
applied when using  -buildmode=c-shared.

Any clue on how to achieve this?

Thanks,
Quim

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9f5bed66-52b1-4a6e-bfcc-3563648e4904n%40googlegroups.com.

Reply via email to