summaryrefslogtreecommitdiff
path: root/stringrecognizer.cpp
diff options
context:
space:
mode:
authorwanghaiwei <haiwei.wang1109@gmail.com>2025-12-29 16:39:54 +0800
committerMark Rowe <mark@vector35.com>2026-01-22 14:10:04 -0800
commit14a8c76b46354826d79431168749ed81963db034 (patch)
treea50f717b21087a74d253304b85a3cc7c4957e539 /stringrecognizer.cpp
parent3afe0f178f75f2f918cd9d418162dfce3a692337 (diff)
[Mach-O] Improve how section types are identified
1. A section's `flags` are masked with `SECTION_TYPE` before being compared. This prevents misclassifying a section when its low bits are shared with other section types. 2. `__mod_init_func` and `__init_offsets` are identified by section type flags, rather than by name. There's no documented reason why these were being matched by name. 3. A fallback is added to detect `__got` sections by name. This is necessary as some kext bundles that have their `__got` sections as `S_REGULAR` rather than `S_NON_LAZY_SYMBOL_POINTERS`. This fixes https://github.com/Vector35/binaryninja-api/issues/7891. Thanks to @WHW0x455 for these fixes.
Diffstat (limited to 'stringrecognizer.cpp')
0 files changed, 0 insertions, 0 deletions