]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: fix pclntab symbol handling on AIX
authorCherry Zhang <cherryyz@google.com>
Mon, 3 Aug 2020 21:59:41 +0000 (17:59 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 3 Aug 2020 23:45:46 +0000 (23:45 +0000)
commitb85033d153835c45cd4ee51046a34c1dac52f0e0
tree205947711faf2580ce049c7914b8258c861ba8b2
parent5c9b540378ed81fd45cc13f0a610bb29140e28ff
[dev.link] cmd/link: fix pclntab symbol handling on AIX

On AIX, container symbols are handled in a weird way (unlike
other platforms): the outer symbol needs to have size (but still
no data), and the inner symbols must not be in the symbol table
(otherwise it overlaps with the outer symbol, which the system
linker doesn't like).

As of CL 241598, pclntab becomes a container symbol. We need to
follow the rule above for AIX.

Fix AIX build.

Change-Id: Ie2515a4cabbd8cf3f6d3868643a28f64ca3365a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/246479
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/ld/xcoff.go