Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/link: don't emit PAX_FLAGS segment on Linux
We started emitting this segment in 2012 in CL 6326054 for #47. It disabled three kinds of protection: mprotect, randexec, and emutramp. The randexec protection was deprecated some time ago, replaced by PIE. The emutramp and mprotect protection was because we used to rely on being able to create writable executable memory to implement function closures, but that is not true since https://go.dev/s/go11func was implemented. Change-Id: I5e3a5279d76d642b0423d26195b891479a235763 Reviewed-on: https://go-review.googlesource.com/c/go/+/471199 Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
- Loading branch information