A+C: Steve McCoy (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7608044
cgo: enable external linking mode on FreeBSD amd64.

Tested on FreeBSD 9.1 amd64, per rsc's instructions at
https://groups.google.com/d/topic/golang-dev/HjRTLvRsJXo/discussion .

R=golang-dev, lucio.dere, devon.odell, rsc
CC=golang-dev
https://codereview.appspot.com/7664044

Committer: Russ Cox <rsc@golang.org>
cmd/8l/obj.c: NetBSD passes the test, Hnetbsd added.

myrtle$ go version
go version devel +d533352b414d Sat Mar 09 05:39:15 2013 +0100 netbsd/386
myrtle$ time go test -ldflags -hostobj ../misc/cgo/test
ok      _/var/project/GoLang/misc/cgo/test      10.962s
   68.63s real    49.60s user    19.06s system
myrtle$ uname -a
NetBSD myrtle.plan9.local 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) i386

R=rsc
CC=golang-dev
https://codereview.appspot.com/7641047

Committer: Russ Cox <rsc@golang.org>
net: evaluate the timeout dial opt's deadline at dial time

Previously it was evaluated once, so re-using the timeout option
repeatedly would always generate the same deadine.

Also switch to doing just one pass over the options, making
the private interface actually useful.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/7608045
runtime: fix misaligned 64-bit atomic
Fixes issue 4869.
Fixes issue 5007.
Update issue 5005.

R=golang-dev, 0xe2.0x9a.0x9b, bradfitz
CC=golang-dev
https://codereview.appspot.com/7534044
cmd/ld: add tmpdir flag to preserve temp files

R=ken2
CC=golang-dev
https://codereview.appspot.com/7497044
cmd/ld: make mach-o sections match internal sections

This brings Mach-O generation more in line with ELF generation.

Having separate sections for the symtab and pclntab mean that we
can find them that way, instead of using the deprecated debug segments.
(And the host linker will keep separate sections for us, but probably
not the debug segments.)

R=ken2
CC=golang-dev
https://codereview.appspot.com/7688043
libmach: fix build

I guess it would be too much to ask for gcc on my machine to give
the same errors as gcc on the builder machines.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7686044
cmd/ld: include full symbol table in Mach-O output

This makes binaries work with OS X nm.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7558044