1
0
mirror of https://github.com/golang/go synced 2024-11-14 15:10:54 -07:00
go/src/cmd
David Crawshaw 7ee7936523 cmd/link: handle R_GOTPCREL separately on darwin
To generate the correct section offset the shared code path for
R_CALL, R_PCREL, and R_GOTPCREL on darwin when externally linking
walks up the symbol heirarchy adding the differences. This is fine,
except in the case where we are generating a GOT lookup, because
the topmost symbol is left in r.Xsym instead of the symbol we are
looking up. So all funcsym GOT lookups were looking up the outer
"go.func.*" symbol.

Fix this by separating out the R_GOTPCREL code path.

For #17828 (and may fix it).

Change-Id: I2c9f4d135e77c17270aa064d8c876dc6d485d659
Reviewed-on: https://go-review.googlesource.com/33211
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-11-16 18:37:03 +00:00
..
addr2line
api
asm cmd/asm: add support for GOARCH=mips{,le} 2016-11-08 18:07:24 +00:00
cgo cmd/cgo: add missing period in comment 2016-11-15 17:42:30 +00:00
compile cmd/compile: remove some unused code 2016-11-16 16:00:35 +00:00
cover cmd/cover: change covered block for switch/select case to exclude expression 2016-11-03 16:13:06 +00:00
dist os/exec: add closeOnce.WriteString method 2016-11-16 02:24:30 +00:00
doc cmd/doc: show documentation for interface methods when requested explicitly 2016-10-25 20:09:49 +00:00
fix
go cmd/go: use build ID as plugin symbol prefix 2016-11-15 16:17:07 +00:00
gofmt cmd/gofmt, crypto/tls: fix typos 2016-11-11 16:42:40 +00:00
internal cmd/internal/browser: add chromium to the list of browsers 2016-11-12 00:29:12 +00:00
link cmd/link: handle R_GOTPCREL separately on darwin 2016-11-16 18:37:03 +00:00
nm
objdump cmd/objdump: speed up tests 2016-11-04 00:50:53 +00:00
pack
pprof cmd/pprof: add options to skip tls verification 2016-11-12 18:30:15 +00:00
trace internal/pprof/profile: new package, moved from cmd/internal/pprof/profile 2016-11-02 19:09:11 +00:00
vendor cmd/vendor/golang.org/x/arch/ppc64/ppc64asm: skip TestObjdumpPowerManual if not ppc64x 2016-11-01 17:00:46 +00:00
vet Revert "cmd/vet: ignore printf failures in cmd" 2016-11-13 21:28:13 +00:00