[ELF] --gc-sections: collect unused SHF_LINK_ORDER .gcc_except_table
authorFangrui Song <i@maskray.me>
Sat, 6 Feb 2021 05:35:27 +0000 (21:35 -0800)
committerFangrui Song <i@maskray.me>
Sat, 6 Feb 2021 05:35:27 +0000 (21:35 -0800)
commit6a1235211dab51855d51481daf4099c96221c4bf
treef872b3a6b370813de25cefacd478fbe6484cd16f
parentea3175c15b607ce097a80552989673b66016ec30
[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.
lld/ELF/MarkLive.cpp
lld/test/ELF/gc-sections-lsda.s