]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add PPC64 debugging option to encourage text section splits
authorThan McIntosh <thanm@google.com>
Tue, 7 Jul 2020 16:54:46 +0000 (12:54 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 10 Aug 2020 11:38:46 +0000 (11:38 +0000)
commitd41b9066dad9091c55e2b6e6c48ceaee7dff1cf6
tree1588622f5e49f4c8e872cf9cee66242c6e4ae201
parent18ee3498805f81ef7f3435800bc5581599c61872
[dev.link] cmd/link: add PPC64 debugging option to encourage text section splits

Add a new debugging command line option (-debugppc64textsize=N) that
forces the start of a new text section after ".text" hits N bytes as
opposed to the architected limit of 2^26. This is intended to enable
testing of the linker code paths that handle multiple .text sections
on PPC64 without resorting to building giant applications.

Updates #20492.

Change-Id: I74ab7fd1e412e9124de5bd0d8d248c5e73225ae3
Reviewed-on: https://go-review.googlesource.com/c/go/+/241073
Run-TryBot: Than McIntosh <thanm@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/main.go