]> Cypherpunks repositories - gostls13.git/commit
cmd: disable DWARF with old ld on aix/ppc64
authorClément Chigot <clement.chigot@atos.net>
Wed, 20 Feb 2019 15:39:09 +0000 (16:39 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 13 Mar 2019 02:33:58 +0000 (02:33 +0000)
commit0ff9df6b53076a9402f691b07707f7d88d352722
tree3359808bec6ac2a443d7a664c74d43c34dfc97b2
parentbea58ef352ddf35e9de5ce3cec7eafa036d5491c
cmd: disable DWARF with old ld on aix/ppc64

DWARF relocations isn't working with some older ld, because of
-Wl,-bnoobjreorder which is needed on Go.
This commit checks ld's version and disable DWARF generation in cmd/link
if it's too old. Some tests must therefore be skipped.

Change-Id: I2e794c263eb0dfe0b42e7062fb80c26f086b44d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/164007
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/compile/internal/ssa/stmtlines_test.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/dwarf_test.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go