pkgs/development/compilers/go/go-default-pie.patch
deleted100644 → 0
+0
−13
Loading
Admins will be upgrading ORNL GitLab Servers on Saturday, 16 May 2026, from 7 AM until 11 AM EST. Repositories will experience intermittent outages during this time.
Reverts default PIE patch for go. Does not reintroduce usages of removed "pie" hardening flag. I've made a right mess😿 ; we have to back go default PIE out late. building with -race was just reported broken, there isn't time to investigate. fixing is a mass rebuild. People are using nixpkgs' go outside of nix derivations to produce executables to copy into containers. buildGoModule currently sets buildmode=exe when CGO_ENABLED=0 but this does nothing to maintain the existing interface for external users. We are fortunate that backing out the go PIE change in this manner does not reintroduce breakage of pkgsMusl.rclone etc that previously occurred when buildmode=pie *wasn't* set. The gcc `--enable-default-pie` approach turns out to not cause problems when mixed with a non-PIE go externally linked build. Historical issues were due to our linker wrapper being less smart about enabling PIE. Default PIE for go should be revisited post branch off. Fixes: #456953 Fixes: #461539