Skip to content

go: Add build_mode to go.package - #291

Merged
daandemeyer merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-tnounronwqzw
Oct 10, 2026
Merged

daandemeyer merged 1 commit into
amutable-systems:mainfrom
daandemeyer:push-tnounronwqzw

Conversation

@daandemeyer

Copy link
Copy Markdown
Member

go.package always builds with the toolchain's default build mode. On Linux
that is an executable linked at a fixed address. A distribution that hardens
its binaries needs them position independent. Add build_mode to select
-buildmode=pie, and apply it to the test binaries as well.

Signed-off-by: Daan De Meyer daan@amutable.com

go.package always builds with the toolchain's default build mode. On Linux
that is an executable linked at a fixed address. A distribution that hardens
its binaries needs them position independent. Add build_mode to select
-buildmode=pie, and apply it to the test binaries as well.

Signed-off-by: Daan De Meyer <daan@amutable.com>
@daandemeyer

Copy link
Copy Markdown
Member Author

Only docs added, and the feature is trivial, so gonna merge this quickly so I can make progress on my other stuff that needs this.

@daandemeyer
daandemeyer merged commit 5a73c2e into amutable-systems:main Oct 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant