[all-commits] [llvm/llvm-project] ef752a: [BOLT] Emit .eh_frame_hdr before .eh_frame to prev...

Daniel Hill via All-commits all-commits at lists.llvm.org
Mon Jun 22 14:16:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef752a0780be31ac94be5f459ff60629136f4087
      https://github.com/llvm/llvm-project/commit/ef752a0780be31ac94be5f459ff60629136f4087
  Author: Daniel Hill <daniel.hill at mongodb.com>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/test/eh-frame-hdr.test

  Log Message:
  -----------
  [BOLT] Emit .eh_frame_hdr before .eh_frame to prevent table scans from libdw (#201917)

resolves https://github.com/llvm/llvm-project/issues/201701 by moving
the `.eh_frame_hdr` section-header entry before `.eh_frame` before
assigning final section indices.

This lets BOLT binaries work with existing [libdw library logic
expecting the index before the
table](https://github.com/sourceware-org/elfutils/blob/67199e1c974db37f2bd200dcca7d7103f42ed06e/libdw/dwarf_getcfi_elf.c#L301),
preventing linear `.eh_frame` scanning.



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