]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: fix bug in -strictdups checking of BSS symbols
authorThan McIntosh <thanm@google.com>
Tue, 8 Jun 2021 23:45:41 +0000 (19:45 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 9 Jun 2021 02:18:24 +0000 (02:18 +0000)
commit07ca28d529e1afb64a9f6f068214c05ee9772d34
treee6d1f21355b7dfff02d7c4f8b6da9efb09bfb6be
parentbcecae2af6ee43abebf84411385d538ec4e7d0ea
cmd/link: fix bug in -strictdups checking of BSS symbols

The linker's -strictdups debugging option was not properly checking
for cases where you have two dupok BSS symbols with different length
(the check examined data length and content, but not symbol size).

Updates #46653.

Change-Id: I3844f25ef76dd6e4a84ffd5caed5d19a1b1a57c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/326210
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/loader/loader.go
src/cmd/link/link_test.go