mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] all: merge branch 'master' into dev.link
Change-Id: I446db56b20ef2189e23e225a91a17736c1d11e4c
This commit is contained in:
commit
3187b05b87
71 changed files with 1541 additions and 832 deletions
|
|
@ -616,15 +616,15 @@ func (l *Loader) checkdup(name string, r *oReader, li uint32, dup Sym) {
|
|||
}
|
||||
fmt.Fprintf(os.Stderr, "cmd/link: while reading object for '%v': duplicate symbol '%s', previous def at '%v', with mismatched payload: %s\n", r.unit.Lib, name, rdup.unit.Lib, reason)
|
||||
|
||||
// For the moment, whitelist DWARF subprogram DIEs for
|
||||
// For the moment, allow DWARF subprogram DIEs for
|
||||
// auto-generated wrapper functions. What seems to happen
|
||||
// here is that we get different line numbers on formal
|
||||
// params; I am guessing that the pos is being inherited
|
||||
// from the spot where the wrapper is needed.
|
||||
whitelist := strings.HasPrefix(name, "go.info.go.interface") ||
|
||||
allowed := strings.HasPrefix(name, "go.info.go.interface") ||
|
||||
strings.HasPrefix(name, "go.info.go.builtin") ||
|
||||
strings.HasPrefix(name, "go.debuglines")
|
||||
if !whitelist {
|
||||
if !allowed {
|
||||
l.strictDupMsgs++
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue