[all-commits] [llvm/llvm-project] 6a1235: [ELF] --gc-sections: collect unused SHF_LINK_ORDER...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Feb 5 21:35:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a1235211dab51855d51481daf4099c96221c4bf
      https://github.com/llvm/llvm-project/commit/6a1235211dab51855d51481daf4099c96221c4bf
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M lld/ELF/MarkLive.cpp
    M lld/test/ELF/gc-sections-lsda.s

  Log Message:
  -----------
  [ELF] --gc-sections: collect unused SHF_LINK_ORDER .gcc_except_table

A SHF_LINK_ORDER .gcc_except_table is similar to a .gcc_except_table in
a section group. The associated text section is responsible for retaining it.

LLD still does not support GC of non-group non-SHF_LINK_ORDER .gcc_except_table -
but that is not necessary because we can teach the compiler to set SHF_LINK_ORDER.




More information about the All-commits mailing list