[PATCH] D76668: [lld][ELF] Ignore __start/__stop symbols in section groups during GC

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 23:25:42 PDT 2020


MaskRay added a subscriber: Bdragon28.
MaskRay added a comment.

In D76668#1940701 <https://reviews.llvm.org/D76668#1940701>, @ruiu wrote:

> lld's `--gc-sections` behavior didn't take start/stop symbols into consideration, but it turned out some programs didn't work with that algorithm, so we (I believe rafael or pcc) added the logic to preserve sections for start/stop symbols. Therefore, I think we can't ignore start/stop symbols at the section gc stage and need to at least keep the existing logic.


The description of rL297049 <https://reviews.llvm.org/rL297049> mentioned FreeBSD kernel. It is probably about linker sets. @Bdragon28 may provide more context.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76668/new/

https://reviews.llvm.org/D76668





More information about the llvm-commits mailing list