• Michael Hudson-Doyle's avatar
    cmd/link: set the ELF headers of ARM executables that use cgo correctly · 3e6334e2
    Michael Hudson-Doyle authored
    It is generally expected that the ELF flags of a dynamically linked executable
    and the libraries it links against match. Go's linker currently always produces
    executables with flags that do not declare a float abi (hard, soft) at all, but
    when cgo is involved it is unlikely that this matches the system libraries
    being linked against -- really the decision about ABI is made by the C compiler
    during the invocation of cgo.
    
    This change is basically a port of the code from binutils that parses the
    ".ARM.attributes" section to check for the tag that declares that the code is
    built for the hard-float ABI.
    
    Fixes #7094
    
    Change-Id: I737c8f3b5ed4af545cfc3e86722d03eb83083402
    Reviewed-on: https://go-review.googlesource.com/14860
    Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMinux Ma <minux@golang.org>
    3e6334e2
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
newlink Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...
yacc Loading commit data...