Skip to content

Commit

Permalink
build: add flag noexecstack for ld on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Jan 17, 2025
1 parent d41d601 commit 02dbf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (
// regarding the options --build-id=none and --strip-all. It is needed for
// reproducible builds; removing references to temporary files in C-land, and
// making build-id reproducibly absent.
extld := []string{"-Wl,-z,stack-size=0x800000,--build-id=none,--strip-all"}
extld := []string{"-Wl,-z,noexecstack,stack-size=0x800000,--build-id=none,--strip-all"}
if staticLinking {
extld = append(extld, "-static")
// Under static linking, use of certain glibc features must be
Expand Down

0 comments on commit 02dbf17

Please sign in to comment.