]> Cypherpunks repositories - gostls13.git/commit
cmd/link: change -strictdups checking to handle mix of flags
authorThan McIntosh <thanm@google.com>
Tue, 26 Mar 2019 16:02:36 +0000 (12:02 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 27 Mar 2019 17:53:27 +0000 (17:53 +0000)
commitcacab6455503e04b276542baffc19f5113ef133d
tree9034133e94c012ba80b9cb17254db5dfcd7475c3
parent697f4183e6815beacbd254942160e71a2e0cde60
cmd/link: change -strictdups checking to handle mix of flags

Update the recently-added '-strictdups' sanity checking to avoid
failing the link in cases where we have objects feeding into the link
with a mix of command line flags (and in particular some with "-N" and
some without). This scenario will trigger errors/warnings due to
inlinable functions and wrapper functions that have different sizes
due to presence or lack of optimization.

Update #31034.

Change-Id: I1dd9e37c2f9bea5da0ab82e32e6fc210aebf6a65
Reviewed-on: https://go-review.googlesource.com/c/go/+/169160
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/objfile/objfile.go