cabbaken wrote: I referred related logic of `llvm-readelf` which can correctly read the malformed program header, so I think the Section Header check is necessary. Please let me know if there are additional considerations to be aware of. https://github.com/llvm/llvm-project/pull/126537