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
cmd/ld: wrap long data lines in -a output

Also move symbol names onto lines by themselves: some are very long.
Show relocations.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7689043
cmd/ld: replace dynimpname with extname

Dynimpname was getting too confusing.
Replace flag-like checks with tests of s->type.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7594046
misc/dashboard: add go.blog sub-repo to dashboard

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/7690043
cmd/go: send output of build and install to stderr

"go build" and "go install" were mixing stdout and stderr
from the toolchain, then putting it all on stdout. With this
change, it stays mixed, and is sent to stderr. Because
the toolchain does not create output in a clean compile/install,
sending all output to stderr makese more sense.

Also fix test.bash because of "mktemp: too few X's
in template `testgo'" on Linux.

Fixes issue 4917.

R=golang-dev, rsc, adg
CC=golang-dev
https://codereview.appspot.com/7393073

Committer: Andrew Gerrand <adg@golang.org>
doc/contribute: add instructions to fix codereview on windows

Tell Windows users how to update Mercurial's library.zip to add some missing dependencies.

Fixes issue 4745.

R=golang-dev, patrick.allen.higgins, minux.ma, adg
CC=golang-dev
https://codereview.appspot.com/7558043

Committer: Andrew Gerrand <adg@golang.org>
cmd/ld: avoid redundant external relocation calculations

R=ken2, ken
CC=golang-dev
https://codereview.appspot.com/7483045
cmd/ld: darwin support for host linking

R=ken2
CC=golang-dev
https://codereview.appspot.com/7626045
build: enable host linking test for all BSDs

Let's just see what breaks.

R=golang-dev, bradfitz, adg
CC=golang-dev
https://codereview.appspot.com/7693043
cmd/5l: fix build (define stub machoreloc1)

R=ken2
CC=golang-dev
https://codereview.appspot.com/7694043
cmd/ld, runtime/cgo: allow a symbol to be both cgo_export and cgo_import.
Fixes issue 4878.

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