• Than McIntosh's avatar
    cmd/link: change -strictdups checking to handle mix of flags · cacab645
    Than McIntosh authored
    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: default avatarDavid Chase <drchase@google.com>
    cacab645
lib.go 70.1 KB