Skip to content

Commit dce7eb4

Browse files
committed
Fixed never fixing up the parsed functions
1 parent 8445687 commit dce7eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/file/macho/machoFile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static inline bool machoFile_handleFunctionStarts(struct machoFile* self, struct
257257
uint32_t size = macho_maybeSwap(32, bitsReversed, command->datasize);
258258

259259
const void* bytes = baseAddress + offset + ((self->linkedit_vmaddr - self->text_vmaddr) - self->linkedit_fileoff);
260-
uint64_t funcAddr = 0;
260+
uint64_t funcAddr = self->text_vmaddr;
261261
for (size_t i = 0; i < size;) {
262262
funcAddr += getULEB128(bytes, &i);
263263
vector_uint64_push_back(&self->functionStarts, funcAddr);

0 commit comments

Comments
 (0)