]> Cypherpunks repositories - gostls13.git/commit
ld: make ELF binaries with no shared library dependencies static binaries
authorRuss Cox <rsc@golang.org>
Tue, 3 May 2011 05:56:23 +0000 (01:56 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 3 May 2011 05:56:23 +0000 (01:56 -0400)
commit296d6871a8283cf6dcbaa916526da4608a37397b
treed8434269c38072c904e48c5cb89350f3959ffb96
parenta3baf7f90ebdfaa38358cb2e45abae827b97b99a
ld: make ELF binaries with no shared library dependencies static binaries

$ file $GOROOT/bin/{godoc,goyacc}
/home/rsc/g/go/bin/godoc:  ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not strpped
/home/rsc/g/go/bin/goyacc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
$

Fixes #1758.

R=iant
CC=golang-dev
https://golang.org/cl/4428079
src/cmd/ld/go.c
src/cmd/ld/lib.c
src/cmd/ld/lib.h