]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use __got as the .got section name
authorqmuntal <quimmuntal@gmail.com>
Tue, 25 Feb 2025 20:56:29 +0000 (21:56 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 28 Feb 2025 20:43:36 +0000 (12:43 -0800)
commit2298215f5b02458e6578b6813cf2361924d64649
tree4c029e7c1f9b93599b996dfb23c61b2867d4c546
parent74ba2164a04bcc6600782d0d200103ecaa621ef3
cmd/link: use __got as the .got section name

The __nl_symbol_ptr is not a common section name anymore. LLVM prefers
__got for GOT symbols in the __DATA_CONST segment.

Note that the Go linker used to place the GOT section in the __DATA
segment, but since CL 644055 we place it in the __DATA_CONST segment.

Updates #71416.

Cq-Include-Trybots: luci.golang.try:gotip-darwin-amd64-longtest
Change-Id: Icb776e19855eaabb4777a9b1eb433497842413b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/652555
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/macho_test.go