• Clément Chigot's avatar
    cmd/link: enable DWARF with external linker on aix/ppc64 · 3cf89e50
    Clément Chigot authored
    In order to allow DWARF with ld, the symbol table is adapted.
    In internal linkmode, each package is considered as a .FILE. However,
    current version of ld is crashing on a few programs because of
    relocations between DWARF symbols. Considering all packages as part of
    one .FILE seems to bypass this bug.
    As it might be fixed in a future release, the size of each package
    in DWARF sections is still retrieved and can be used when it's fixed.
    Moreover, it's improving internal linkmode which should have done it
    anyway.
    
    Change-Id: If3d023fe118b24b9f0f46d201a4849eee8d5e333
    Reviewed-on: https://go-review.googlesource.com/c/go/+/164006
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
    3cf89e50
xcoff.go 47.5 KB