Skip to content

Commit

Permalink
fix: FindSymbolAddress with no ErrMachODyldInfoNotFound error
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 19, 2024
1 parent 31c603e commit 2b170e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -2941,7 +2941,9 @@ func (f *File) FindSymbolAddress(symbol string) (uint64, error) {
}
exports, err := f.GetExports()
if err != nil {
return 0, fmt.Errorf("failed to get exports: %v", err)
if err != ErrMachODyldInfoNotFound {
return 0, fmt.Errorf("failed to get exports: %v", err)
}
}
for _, sym := range exports {
if strings.EqualFold(sym.Name, symbol) {
Expand Down

0 comments on commit 2b170e3

Please sign in to comment.