]> Cypherpunks repositories - gostls13.git/commit
cmd/link: enable DWARF with external linker on aix/ppc64
authorClément Chigot <clement.chigot@atos.net>
Wed, 20 Feb 2019 15:29:00 +0000 (16:29 +0100)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Mar 2019 00:25:11 +0000 (00:25 +0000)
commit3cf89e509b21d0f469c4e0a78179b9d2d961c864
treef65aa0e6d5076902108af957bd6c644e1f2b1f36
parentb37b35edd75af0c175079029bfa3d302637a9c8e
cmd/link: enable DWARF with external linker on aix/ppc64

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: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/xcoff.go