Skip to content

Commit

Permalink
internal/weight/nm: handle external symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Nov 24, 2022
1 parent b0dc200 commit e179c95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/weight/nm/measure.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 87,11 @@ func parseLine(s string) (*Sym, error) {
if err != nil {
return nil, fmt.Errorf("invalid size %q: %q", s, size)
}

// ignore external sym size
if sym.Size == 4294967296 {
sym.Size = 0
}
}

if code := strings.TrimSpace(tokens[1]); code != "" {
Expand Down

0 comments on commit e179c95

Please sign in to comment.