]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix XCOFF sections
authorClément Chigot <clement.chigot@atos.net>
Fri, 23 Nov 2018 10:17:36 +0000 (11:17 +0100)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Nov 2018 23:51:21 +0000 (23:51 +0000)
commit3f9efe750058308bc499c5eb22bc84193fedb6b3
treeac7caccf0bf25ffbf00abba0e32db25bee45b8f0
parent9e849dcee4a7049325e483bddef27c22b19dd88b
cmd/link: fix XCOFF sections

XCOFF files can't have multiples text or data sections. The name
of each type section must be .text, .data and .bss.

This commit also updates cmd/internal/objfile/xcoff.go to retrieve Go
sections using runtime symbols.

Change-Id: Ib6315f19dad2d154a4531fc6508e7cbd8bc94743
Reviewed-on: https://go-review.googlesource.com/c/151037
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/objfile/xcoff.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/xcoff.go
src/cmd/link/internal/ppc64/asm.go