]> Cypherpunks repositories - gostls13.git/commit
cmd/link: skip gaps between PT_LOAD segments in TestPIESize
authorCherry Zhang <cherryyz@google.com>
Fri, 6 Dec 2019 21:52:53 +0000 (16:52 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 6 Dec 2019 23:12:11 +0000 (23:12 +0000)
commitdf0ac450022076631280569e2a157f016dcdab80
tree0faa389daa5205566daab2dd92f502b01241bd82
parent1de31310d9f29f1ccf78f37eb9c7da3fb7867494
cmd/link: skip gaps between PT_LOAD segments in TestPIESize

There may be gaps between non-writeable and writeable PT_LOAD
segments, and the gaps may be large as the segments may have
large alignment. Don't count those gaps in file size comparison.

Fixes #36023.

Change-Id: I68582bdd0f385ac5c6f87d485d476d06bc96db19
Reviewed-on: https://go-review.googlesource.com/c/go/+/210180
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/elf_test.go