[all-commits] [llvm/llvm-project] 3e9adf: [ELF] Split EhInputSection::pieces into cies and fdes

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jul 31 16:16:23 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e9adff456213951376f6fff9349ffe71136f2b5
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-31 (Sun, 31 Jul 2022)

  Changed paths:
    M lld/ELF/InputSection.cpp
    M lld/ELF/InputSection.h
    M lld/ELF/MarkLive.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/SyntheticSections.cpp

  Log Message:
  [ELF] Split EhInputSection::pieces into cies and fdes

This simplifies code, removes a read32 (for id==0 check), and makes it feasible
to combine some operations in EhInputSection::split and EhFrameSection::addRecords.

Mostly NFC, but fixes "Relocation not in any piece" assertion failure in an
erroneous case when a relocation offset precedes all CIE/FDE pices.

More information about the All-commits mailing list