[PATCH] D84131: [ELF] Support -r --gc-sections

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 02:48:23 PDT 2020


psmith added a comment.

I guess if the use case for -r is a kernel module then garbage collection can make sense as the "object" is not relinked. What happens when there is no GC root? I think it will be worth detecting that and turning GC off as otherwise everything will get removed which is unlikely to be what was wanted.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84131





More information about the llvm-commits mailing list