Fangrui Song 80743bd43f [ELF] Fix /DISCARD/ .eh_frame regression after #179089
When .eh_frame is discarded while .eh_frame_hdr is not, #179089 caused a
crash for `/DISCARD/ : { *(.eh_frame) }`.

Simplify the PT_GNU_EH_FRAME condition from https://reviews.llvm.org/D30885 (2017).
2026-02-11 22:08:26 -08:00
..