-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was dropped in the update with the consequence that binaries using external linking weren't correctly marked, causing breakage of some go ports on BTI enabled machines. Reported by Isaac Merleo, tested by sthen and rsadowski ok jsing sthen
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Index: src/cmd/link/internal/ld/lib.go | ||
--- src/cmd/link/internal/ld/lib.go.orig | ||
+++ src/cmd/link/internal/ld/lib.go | ||
@@ -1441,6 +1441,7 @@ func (ctxt *Link) hostlink() { | ||
} | ||
case objabi.Hopenbsd: | ||
argv = append(argv, "-Wl,-nopie") | ||
+ argv = append(argv, "-Wl,-z,nobtcfi") | ||
argv = append(argv, "-pthread") | ||
if ctxt.Arch.InFamily(sys.ARM64) { | ||
// Disable execute-only on openbsd/arm64 - the Go arm64 assembler |