]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't count tbss section in TestFlagD
authorCherry Mui <cherryyz@google.com>
Fri, 12 Sep 2025 16:36:38 +0000 (12:36 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 12 Sep 2025 17:20:07 +0000 (10:20 -0700)
commit911455fe1893bcd90d30246117415dfbce658d88
treebc2e570c37a5da5d3f9c4ccd03bed535bfef118a
parentf1fd13016ab51b93f5d39b0c46aa8c2b42e8f761
cmd/link: don't count tbss section in TestFlagD

TestFlagD looks for a data-like section at the lowest address.
On OpenBSD, the .tbss section matches the current condition, which
has address 0, causing the test fail. Don't count TLS sections.

Also, print the section name on error.

Fixes #75444.

Change-Id: Ic0aa1a2bb7c6bd5c0023d4482405a482095ff68b
Reviewed-on: https://go-review.googlesource.com/c/go/+/703375
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/elf_test.go