]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix the size of typerel.* with c-archive buildmode
authorClément Chigot <chigot.c@gmail.com>
Tue, 5 Nov 2019 15:31:05 +0000 (16:31 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Nov 2019 13:55:04 +0000 (13:55 +0000)
commit6dc250f456e078b213cee0f1099e915aa0d4d4d9
tree430ea9ea1f53551c4138a725c83cb912139954ee
parent0c5d545ccdd01403d6ce865fb03774a6aff6032c
cmd/link: fix the size of typerel.* with c-archive buildmode

With buildmode=c-archive, "runtime.types" type isn't STYPE but
STYPERELRO.
On AIX, this symbol is present in the symbol table and not under
typerel.* outersymbol. Therefore, the size of typerel.* must be adapted.

Fixes #35342

Change-Id: Ib982c6557d9b41bc3d8775e4825650897f9e0ee6
Reviewed-on: https://go-review.googlesource.com/c/go/+/205338
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/xcoff.go