[all-commits] [llvm/llvm-project] 80743b: [ELF] Fix /DISCARD/ .eh_frame regression after #17...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Feb 11 22:08:51 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80743bd43fd5b38fedc503308e7a652e23d3ec93
      https://github.com/llvm/llvm-project/commit/80743bd43fd5b38fedc503308e7a652e23d3ec93
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M lld/ELF/SyntheticSections.h
    M lld/ELF/Writer.cpp
    A lld/test/ELF/linkerscript/discard-eh-frame.s
    R lld/test/ELF/linkerscript/pt_gnu_eh_frame.s

  Log Message:
  -----------
  [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).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list