1
0
mirror of https://github.com/golang/go synced 2024-11-06 21:36:11 -07:00
go/misc/cgo/testcshared
Russ Cox b28f2f7399 cmd/link: make mach-o dwarf segment properly aligned
Without this, the load fails during kernel exec, which results in the
mysterious and completely uninformative "Killed: 9" error.

It appears that the stars (or at least the inputs) were properly aligned
with earlier versions of Xcode so that this happened accidentally.
Make it happen on purpose.

Gregory Man bisected the breakage to this change in LLVM,
which fits the theory nicely:
https://github.com/llvm-mirror/llvm/commit/9a41e59c

Fixes #19734.

Change-Id: Ice67a09af2de29d3c0d5e3fcde6a769580897c95
Reviewed-on: https://go-review.googlesource.com/38854
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-03-30 12:29:18 +00:00
..
src runtime: disable a signal by restoring the original disposition 2016-01-05 00:25:50 +00:00
main0.c cmd/go: install headers for c-archive/c-shared cgo exports 2015-05-07 17:39:56 +00:00
main1.c misc/cgo/testcshared: test -buildmode=c-shared 2015-04-17 16:16:44 +00:00
main2.c misc/cgo/testcshared: wait up to 1 second in main2.c 2016-12-20 05:06:55 +00:00
main3.c misc/cgo/testcshared: add a c-shared test for android/arm. 2015-04-24 16:32:31 +00:00
main4.c misc/cgo: decrease test failure timeouts 2016-11-17 16:31:34 +00:00
main5.c misc/cgo: decrease test failure timeouts 2016-11-17 16:31:34 +00:00
test.bash cmd/link: make mach-o dwarf segment properly aligned 2017-03-30 12:29:18 +00:00