Lines Matching refs:hdr
271 hdr := new(Header32)
273 if err := binary.Read(sr, f.ByteOrder, hdr); err != nil {
276 f.Type = Type(hdr.Type)
277 f.Machine = Machine(hdr.Machine)
278 f.Entry = uint64(hdr.Entry)
279 if v := Version(hdr.Version); v != f.Version {
282 phoff = int64(hdr.Phoff)
283 phentsize = int(hdr.Phentsize)
284 phnum = int(hdr.Phnum)
285 shoff = int64(hdr.Shoff)
286 shentsize = int(hdr.Shentsize)
287 shnum = int(hdr.Shnum)
288 shstrndx = int(hdr.Shstrndx)
290 hdr := new(Header64)
292 if err := binary.Read(sr, f.ByteOrder, hdr); err != nil {
295 f.Type = Type(hdr.Type)
296 f.Machine = Machine(hdr.Machine)
297 f.Entry = hdr.Entry
298 if v := Version(hdr.Version); v != f.Version {
301 phoff = int64(hdr.Phoff)
302 phentsize = int(hdr.Phentsize)
303 phnum = int(hdr.Phnum)
304 shoff = int64(hdr.Shoff)
305 shentsize = int(hdr.Shentsize)
306 shnum = int(hdr.Shnum)
307 shstrndx = int(hdr.Shstrndx)