Commit 3d72ca99 authored by Xia Bin's avatar Xia Bin Committed by Ian Lance Taylor

cmd/link: directly get max pc value in findfunctab

Change-Id: I70afd2f7b6783926174c4e66565b711cffeb97c5
Reviewed-on: https://go-review.googlesource.com/c/150141
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent dcb1363a
......@@ -520,10 +520,8 @@ func (ctxt *Link) findfunctab() {
// find min and max address
min := ctxt.Textp[0].Value
max := int64(0)
for _, s := range ctxt.Textp {
max = s.Value + s.Size
}
lastp := ctxt.Textp[len(ctxt.Textp)-1]
max := lastp.Value + lastp.Size
// for each subbucket, compute the minimum of all symbol indexes
// that map to that subbucket.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment