diff --git a/file.go b/file.go index b776a7b..45f4101 100644 --- a/file.go +++ b/file.go @@ -1975,6 +1975,9 @@ func (f *File) GenerateFunctionStarts() ([]types.Function, error) { }) } } + if len(funcs) == 0 { + return nil, fmt.Errorf("failed to find any function starts by searching for 'pacibsp' prologues") + } // set end addresses for i := 0; i < len(funcs)-1; i++ { funcs[i].EndAddr = funcs[i+1].StartAddr