Descriptioncmd/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.
Patch Set 1 #Patch Set 2 : diff -r 0588896d408d113ab8751136392d35a51b2ea7eb https://code.google.com/p/go #
Total comments: 2
Patch Set 3 : diff -r 0588896d408d113ab8751136392d35a51b2ea7eb https://code.google.com/p/go #Patch Set 4 : diff -r 73c349c7a77f2187c49ef4dc37ba1b32ca3d6729 https://code.google.com/p/go #MessagesTotal messages: 10
|