• Ian Lance Taylor's avatar
    cmd/link: handle STT_COMMON symbols · 45f75950
    Ian Lance Taylor authored
    Tested by running
    
    GOTRACEBACK=2 CGO_CFLAGS="-Wa,--elf-stt-common=yes" go test -ldflags=-linkmode=internal
    
    in misc/cgo/test. That failed before this CL, succeeded after.
    
    I don't think it's worth doing that as a regular test, though,
    especially since only recent versions of the GNU binutils support the
    --elf-stt-common option.
    
    Fixes #18088.
    
    Change-Id: I893d86181faee217b1504c054b0ed3f7c8d977d3
    Reviewed-on: https://go-review.googlesource.com/33653
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    45f75950
ldelf.go 28.6 KB