From 182629f9016a5e06d89e51f7f1d0fbbc32ff4807 Mon Sep 17 00:00:00 2001 From: blacktop Date: Sat, 5 Oct 2024 11:56:15 -0600 Subject: [PATCH] Update prebuilt.go --- pkg/dyld/prebuilt.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/dyld/prebuilt.go b/pkg/dyld/prebuilt.go index 07930ea99..25a97464f 100644 --- a/pkg/dyld/prebuilt.go +++ b/pkg/dyld/prebuilt.go @@ -435,8 +435,11 @@ func (f *File) parsePrebuiltLoader(sr *io.SectionReader) (*PrebuiltLoader, error if err := binary.Read(sr, binary.LittleEndian, &pbl.UUID); err != nil { return nil, fmt.Errorf("failed to read prebuilt loader uuid: %v", err) } - if err := binary.Read(sr, binary.LittleEndian, &pbl.Unknown); err != nil { - return nil, fmt.Errorf("failed to read prebuilt loader unknown: %v", err) + if err := binary.Read(sr, binary.LittleEndian, &pbl.CpuSubtype); err != nil { + return nil, fmt.Errorf("failed to read prebuilt loader cpu subtype: %v", err) + } + if err := binary.Read(sr, binary.LittleEndian, &pbl.Unused); err != nil { + return nil, fmt.Errorf("failed to read prebuilt loader unused: %v", err) } }