]> Cypherpunks repositories - gostls13.git/commit
cmd/7g: disable duff's device on darwin
authorShenghou Ma <minux@golang.org>
Sat, 11 Apr 2015 00:08:22 +0000 (20:08 -0400)
committerMinux Ma <minux@golang.org>
Thu, 16 Apr 2015 05:12:45 +0000 (05:12 +0000)
commit909bdf56d6aca1546e43a74af4dc46724221ba0e
treef5ba9bddeaa33ab10a325b9eb84100d542630e41
parent72f8102244e148535f879699cca7d66622e455aa
cmd/7g: disable duff's device on darwin

ld64 cannot handle BR26 reloc with non-zero addend. It incorrectly
thinks that non-zero addend for BR26 means the code is not PIC, but
those BR26 relocs should be fully resolved at link time.

Change-Id: I3b3f80791a1db4c2b7318f81a115972cd2237f01
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/8780
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/7g/ggen.go