[all-commits] [llvm/llvm-project] c70795: [MC][CodeGen] Add --large-eh-encoding flag for x86...

Farid Zakaria via All-commits all-commits at lists.llvm.org
Mon Jul 13 15:43:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c70795ccd5f74aad7f3af9490f8b12a92c39c709
      https://github.com/llvm/llvm-project/commit/c70795ccd5f74aad7f3af9490f8b12a92c39c709
  Author: Farid Zakaria <fmzakari at fb.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M llvm/include/llvm/MC/MCTargetOptions.h
    M llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCTargetOptions.cpp
    M llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
    A llvm/test/CodeGen/AArch64/large-eh-encoding.ll
    A llvm/test/CodeGen/X86/large-eh-encoding.ll
    A llvm/test/MC/AArch64/large-eh-encoding.s
    A llvm/test/MC/X86/large-eh-encoding.s

  Log Message:
  -----------
  [MC][CodeGen] Add --large-eh-encoding flag for x86_64 & Aarch64 ELF (#174508)

Add a --large-eh-encoding option that forces 8-byte (DW_EH_PE_sdata8)
pointer encodings for all x86_64 & aarch64 ELF EH sections: FDE CFI
encoding, personality, LSDA, and TType encodings.

This is useful for large binaries where .text may exceed 2GB, causing
relocation overflows in .eh_frame and .gcc_except_table even under the
small or medium code model. The cost is purely in section size (a few
extra bytes per FDE/LSDA entry) with no runtime performance impact.



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