]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: put DYLD_INFO at beginning of LINKEDIT segment on darwin
authorCherry Zhang <cherryyz@google.com>
Thu, 12 Nov 2020 00:43:26 +0000 (19:43 -0500)
committerCherry Zhang <cherryyz@google.com>
Thu, 12 Nov 2020 13:40:55 +0000 (13:40 +0000)
commit4bc5f6f45f6e887f74b22dfdfffd6df2a2f97094
tree4e4be5058801420d0c73cd4cd94ba6744fbededa
parentd7974c31d0eb0ef377a8681f6f7306d46854eb1c
cmd/link: put DYLD_INFO at beginning of LINKEDIT segment on darwin

Apparently, code signing requires DYLD_INFO tables are at the
beginning of the LINKEDIT segment. Put it there.

May fix #42507.

Change-Id: I1836e0f495719cf75f66d0831fe1544bbe3ff1a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/269377
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/macho.go