HardenedBSD builds a few golang ports as PIEs (-buildmode=pie) so that the golang-based application to take advantage of ASLR. However, golang allocates its heap with a fixed address. A few years ago, I opened a bug report[0] with golang and have recently revived it.

I'd like to ask the wider HardenedBSD community for help in randomizing golang's heap on FreeBSD / HardenedBSD. If you're interested in contributing, please take a look at the bug report.

If you know someone who has an understanding of golang's inner workings, please also reach out to them.

I appreciate the help and support.

[0]: https://github.com/golang/go/issues/27583