Files
reverse-engineering-anything/tests
김준호 c552392248 fix(native): keep inspect_macho usable when dyld_info rejects the chained-fixups seg_count (#15147)
* fix(native): keep inspect_macho usable when dyld_info rejects the chained-fixups segment count

dyld_info exits 1 with 'chained fixups, seg_count does not match number
of segments' for every report on Docker Desktop 4.87's backend, whose
trailing __DWARF segment is not counted in dyld_chained_starts_in_image.
inspect_macho then failed as an unclassified execution_failure although
nm, dwarfdump and the load table still describe the slice. Admit this
refusal like the other slice refusals: imports are reported unavailable,
exports keep the nm observations, and the diagnostic is a limitation.

Fixes #15146

* test(native): cover the seg_count refusal on a chained-fixups trailing-__DWARF layout

Build the refused case from __TEXT, __LINKEDIT and a trailing __DWARF
segment with LC_DYLD_CHAINED_FIXUPS, and check that the chained import path
adds no nm call and no chained-table limitation. State the comment in terms
of the layout and the observed dyld_info reports.

* style(native): trim the seg_count refusal comments
2026-11-30 13:05:50 +08:00
..