konrad-kruczynski / elfsharp

Pure managed C# library for reading ELF, UImage, Mach-O binaries.
https://elfsharp.it
Other
150 stars 56 forks source link

Add MachO file header flags. #79

Closed yongyan-gh closed 2 years ago

yongyan-gh commented 2 years ago

According to Apple's loader.h.

E.g. test file simple-mach-o has these flags: NOUNDEFS | DYLDLINK | TWOLEVEL | PIE.

yongyan-gh commented 2 years ago

@konrad-kruczynski pls review. Added 1 test binary file @ https://github.com/konrad-kruczynski/elfsharp-test-binaries/pull/1

konrad-kruczynski commented 2 years ago

Generally it looks good, but the naming convention for enumerations is different. For example look here. For example SPLIT_SEGS should become SplitSegs.

yongyan-gh commented 2 years ago

Generally it looks good, but the naming convention for enumerations is different. For example look here. For example SPLIT_SEGS should become SplitSegs.

Thanks I have updated the naming of the enumerations. Please take a look.