cmd/go: use $CC to build _cgo_defun.c

LGTM=dave, iant
R=iant, dave
CC=golang-codereviews
https://codereview.appspot.com/112000043

Committer: Ian Lance Taylor <iant@golang.org>
os: no /tmp on android

LGTM=minux, bradfitz
R=golang-codereviews, minux, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/104650043
androidtest.bash: missing !

LGTM=iant
R=bradfitz, iant
CC=golang-codereviews
https://codereview.appspot.com/112010045
docs: Make consistent use of optional li closing tags.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://codereview.appspot.com/105100044

Committer: Rob Pike <r@golang.org>
A+C: Manuel Mendez (individual CLA)

Generated by a+c.

R=gobot
CC=golang-codereviews
https://codereview.appspot.com/110970047
net/rpc: use html/template to render html

Found using the vet check in CL 106370045.

This is a second attempt at CL 101670044, which omitted the deps_test change.

This adds dependencies to net/rpc:

        encoding
        encoding/base64
        encoding/json
        html
        unicode/utf16

The obvious correctness and security warrants the additional dependencies.

LGTM=rsc
R=r, minux, rsc, adg
CC=golang-codereviews
https://codereview.appspot.com/110890043
runtime: ignore exceptions from foreign threads.
Fixes issue 8224.

LGTM=alex.brainman, rsc
R=alex.brainman, rsc, dave
CC=golang-codereviews
https://codereview.appspot.com/104200046
runtime: align stack before calling windows in usleep2

Fixes issue 8174.

LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://codereview.appspot.com/102360043
A+C: add Dustin Long (Markover Inc. DBA Poptip corporate CLA).

LGTM=adg
R=adg
CC=dustmop, golang-codereviews
https://codereview.appspot.com/111000044
cmd/5c, cmd/5g, cmd/5l, liblink: nacl/arm support

LGTM=dave, rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/108360043
runtime: nacl/arm support.

LGTM=rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/103680046

--HG--
rename : src/pkg/runtime/defs_nacl_386.h => src/pkg/runtime/defs_nacl_arm.h
sync/atomic: nacl/arm support.

LGTM=dave, rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/110330044

--HG--
rename : src/pkg/sync/atomic/asm_netbsd_arm.s => src/pkg/sync/atomic/asm_nacl_arm.s
syscall: nacl/arm support.

LGTM=dave, rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/101620043

--HG--
rename : src/pkg/syscall/syscall_nacl_386.go => src/pkg/syscall/syscall_nacl_arm.go
rename : src/pkg/syscall/time_nacl_386.s => src/pkg/syscall/time_nacl_arm.s
rename : src/pkg/syscall/zsyscall_nacl_386.go => src/pkg/syscall/zsyscall_nacl_arm.go
crypto/rc4: disable assembly implementation for nacl/arm.
It uses an unsupported addressing mode.

LGTM=iant, rsc
R=rsc, iant
CC=golang-codereviews
https://codereview.appspot.com/106370043
cmd/dist: always use GOARM=7 for nacl/arm

LGTM=dave, rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/101590044
misc/nacl: add go_nacl_arm_exec, update README

LGTM=dave, rsc
R=rsc, iant, dave
CC=golang-codereviews
https://codereview.appspot.com/109390043
nacltest.bash: nacl/arm support.
Also detect GOARCH automatically based on `uname -m`.

LGTM=crawshaw, dave, rsc
R=rsc, iant, crawshaw, dave
CC=golang-codereviews
https://codereview.appspot.com/111780043
nacltest.bash: set GOROOT before invoking cmd/go
The builder builds with GOROOT_FINAL=/usr/local/go set.

TBR=rsc
R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/112100043
debug/elf: add (*File).DynamicSymbols, ErrNoSymbols, and tests for (*File).Symbols and (*File).DynamicSymbols, and formalize symbol order.

Added a complement to (*File).Symbols for the dynamic symbol table.
Would be useful, for instance, if seraching for certain shared objects
compatible with certain libraries (for instance, LADSPA requires an
exported symbol "ladspa_descriptor").

Added a variable ErrNoSymbols that canonicalizes a return from
(*File).Symbols and (*File).DyanmicSymbols if the file has no symbols.

Added tests for both (*File).Symbols and (*File).DynamicSymbols;
there was never a test for (*File).Symbols at all. A small C program using
libelf, included in the test data, was used to produce the golden
symbols to compare against.

As part of the requirements for testing, (*File).Symbols and (*File).DynamicSymbols now document the order in which the symbol tables are returned (in the order the symbols appear in the file).

All tests currently pass.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://codereview.appspot.com/107530043

Committer: Ian Lance Taylor <iant@golang.org>
cmd/go: do not fail if libgcc does not exist

(This is a patch from the pkgsrc Go package.)

LGTM=iant
R=golang-codereviews, iant, joerg.sonnenberger, dave
CC=golang-codereviews, joerg
https://codereview.appspot.com/108340043

Committer: Ian Lance Taylor <iant@golang.org>