Change-Id: Ia4abb76a8fa9e9ab280cd9162238ebd3fba79e4d
Reviewed-on: https://go-review.googlesource.com/56318
Reviewed-by: Ian Lance Taylor <iant@golang.org>
var pe64 int
-var pensect int
-
var nextsectoff int
var nextfileoff int
nextfileoff += int(sect.SizeOfRawData)
}
f.sections = append(f.sections, sect)
- pensect++
return sect
}
peemitreloc(ctxt, t, d, c)
}
- fh.NumberOfSections = uint16(pensect)
+ fh.NumberOfSections = uint16(len(pefile.sections))
// Being able to produce identical output for identical input is
// much more beneficial than having build timestamp in the header.