summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2014-10-21 23:42:13 +0000
committerDave Cheney <dave@cheney.net>2014-10-21 23:42:13 +0000
commitba62790fa7e5bd639803288f91ac14fa44fbe038 (patch)
tree3c449f9461d8c18f9f94126c536a4d23f40c09fe /src/cmd
parentd3d68c248bff95fb98396398d30b51773b61c973 (diff)
downloadgo-ba62790fa7e5bd639803288f91ac14fa44fbe038.tar.gz
undo CL 156430044 / 5d69cad4faaf
Partial undo, changes to ldelf.c retained. Some platforms are still not working even with the integrated assembler disabled, will have to find another solution. ??? original CL description cmd/cgo: disable clang's integrated assembler Fixes issue 8348. Clang's internal assembler (introduced by default in clang 3.4) understands the .arch directive, but doesn't change the default value of -march. This causes the build to fail when we use BLX (armv5 and above) when clang is compiled for the default armv4t architecture (which appears to be the default on all the distros I've used). This is probably a clang bug, so work around it for the time being by disabling the integrated assembler when compiling the cgo assembly shim. This CL also includes a small change to ldelf.c which was required as clang 3.4 and above generate more weird symtab entries. LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://codereview.appspot.com/156430044 ??? LGTM=minux R=iant, minux CC=golang-codereviews https://codereview.appspot.com/162880044
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/cgo/gcc.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go
index e45839e8a..d77d56c22 100644
--- a/src/cmd/cgo/gcc.go
+++ b/src/cmd/cgo/gcc.go
@@ -745,13 +745,7 @@ func (p *Package) gccMachine() []string {
case "386":
return []string{"-m32"}
case "arm":
- args := []string{"-marm"} // not thumb
- if strings.Contains(p.gccBaseCmd()[0], "clang") {
- // The clang integrated assembler understands the .arch directive
- // but does not appear to honor it, so disable it. Issue 8348.
- args = append(args, "-no-integrated-as")
- }
- return args
+ return []string{"-marm"} // not thumb
}
return nil
}