• Ian Lance Taylor's avatar
    cmd/link, cmd/go, cmd/dist: use copy of libgcc.a for internal linking · 754f707f
    Ian Lance Taylor authored
    Change the linker to use a copy of the C compiler support library,
    libgcc.a, when doing internal linking.  This will be used to satisfy any
    undefined symbols referenced by host objects.
    
    Change the dist tool to copy the support library into a new directory
    tree under GOROOT/pkg/libgcc.  This ensures that libgcc is available
    even when building Go programs on a system that has no C compiler.  The
    C compiler is required when building the Go installation in the first
    place, but is not required thereafter.
    
    Change the go tool to not link libgcc into cgo objects.
    
    Correct the linker handling of a weak symbol in an ELF input object to
    not always create a new symbol, but to use an existing symbol if there
    is one; this is necessary on freebsd-amd64, where libgcc contains a weak
    definition of compilerrt_abort_impl.
    
    Fixes #9510.
    
    Change-Id: I1ab28182263238d9bcaf6a42804e5da2a87d8778
    Reviewed-on: https://go-review.googlesource.com/16741Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    754f707f
Name
Last commit
Last update
..
android Loading commit data...
arm Loading commit data...
cgo Loading commit data...
chrome/gophertool Loading commit data...
git Loading commit data...
ios Loading commit data...
linkcheck Loading commit data...
nacl Loading commit data...
sortac Loading commit data...
swig Loading commit data...
trace Loading commit data...
benchcmp Loading commit data...
editors Loading commit data...