]> Cypherpunks repositories - gostls13.git/commit
ld: modify macho linkedit segment to enable OS X code signing
authorMikkel Krautz <mikkel@krautz.dk>
Tue, 18 Oct 2011 20:31:03 +0000 (16:31 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 18 Oct 2011 20:31:03 +0000 (16:31 -0400)
commit78ad19f214394a1cb1e96d448bacb84011204452
tree90e1c70e9a03ba74757f42397317e075dededc93
parentcb2f6cb05d205a6b55ac1a4055a66de4178e3d53
ld: modify macho linkedit segment to enable OS X code signing

Move string table to the end of the __LINKEDIT segment.

This change allows Apple's codesign(1) utility to successfully sign
Go binaries, as long as they don't contain DWARF data (-w flag to
8l/6l).  This is because codesign(1) expects the string table to be
the last part of the file.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5271050
src/cmd/ld/macho.c