Lines Matching refs:hdr
253 var hdr DylibCmd
255 if err := binary.Read(b, bo, &hdr); err != nil {
259 if hdr.Name >= uint32(len(cmddat)) {
260 return nil, &FormatError{offset, "invalid name in dynamic library command", hdr.Name}
262 l.Name = cstring(cmddat[hdr.Name:])
263 l.Time = hdr.Time
264 l.CurrentVersion = hdr.CurrentVersion
265 l.CompatVersion = hdr.CompatVersion
270 var hdr SymtabCmd
272 if err := binary.Read(b, bo, &hdr); err != nil {
275 strtab := make([]byte, hdr.Strsize)
276 if _, err := r.ReadAt(strtab, int64(hdr.Stroff)); err != nil {
285 symdat := make([]byte, int(hdr.Nsyms)*symsz)
286 if _, err := r.ReadAt(symdat, int64(hdr.Symoff)); err != nil {
289 st, err := f.parseSymtab(symdat, strtab, cmddat, &hdr, offset)
297 var hdr DysymtabCmd
299 if err := binary.Read(b, bo, &hdr); err != nil {
302 dat := make([]byte, hdr.Nindirectsyms*4)
303 if _, err := r.ReadAt(dat, int64(hdr.Indirectsymoff)); err != nil {
306 x := make([]uint32, hdr.Nindirectsyms)
312 st.DysymtabCmd = hdr
401 func (f *File) parseSymtab(symdat, strtab, cmddat []byte, hdr *SymtabCmd, offset int64) (*Symtab, error) {
403 symtab := make([]Symbol, hdr.Nsyms)