]> Cypherpunks repositories - gostls13.git/commit
cmd/link: support -bindnow option and permit use of "-Wl,-z,now"
authorThan McIntosh <thanm@google.com>
Wed, 13 Mar 2024 17:49:32 +0000 (17:49 +0000)
committerThan McIntosh <thanm@google.com>
Fri, 15 Mar 2024 16:11:52 +0000 (16:11 +0000)
commit88480fadcc5874f880623ca50713d0c62cc5259b
tree13850dc7f3cfa5c7229c46e109695b8aadc6c734
parentd838e4dcdf89124ed051e1c53e8472e900664a6b
cmd/link: support -bindnow option and permit use of "-Wl,-z,now"

This is a partial roll-forward of CL 473495, which was subsequently
reverted. The second half of CL 473495 will appear in a future CL.

In this patch we introduce a new Go linker "-bindnow" command line
flag, and update the Go command to permit the use of the -Wl,-z,now
option, to allow users to produce binaries that have immediate
binding.

Updates #45681.

Change-Id: Idd61b0d6597bcd37b16c343714c55a4ef6dfb534
Reviewed-on: https://go-review.googlesource.com/c/go/+/571416
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go
src/cmd/link/doc.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/elf_test.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.go
src/internal/testenv/testenv.go