Hello,
while looking into how alpine linux builds golang I've found that is 
patches it to make -buildmode=pie the default. I've tried to find why. I've 
managed to find this thread

        
https://groups.google.com/forum/#!searchin/golang-nuts/pie|sort:date/golang-nuts/Jd9tlNc6jUE/Z9ldF6vPEAAJ

which seems to conclude that there is very little benefit to use pie in 
golang. But then I found anothor thread (this time github ticket)

        https://github.com/golang/go/issues/35192

that decided to make pie default build mode for windows. If anyone would be 
so kind to find some time, I have few questions:

1. Why just windows (and not linux)?
2. Is pie useful now even in go? (the first thread is from 2012-2014)
3. Quote from 
https://github.com/golang/go/issues/35192#issuecomment-548028186 :

    > The bug says ASLR but really this is just about making a 
position-independent binary. There are other reasons to have one of those 
besides ASLR.

    what are those reasons?



Thank you for your time and have a nice day,
W.

-- 
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/eb70f86b-5d7a-4a8b-8635-124d4a6c4d3e%40googlegroups.com.

Reply via email to