[PATCH] D48771: [ELF] Don't create empty output section for unreferenced PROVIDE symbol
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 29 08:17:10 PDT 2018
grimar added inline comments.
================
Comment at: ELF/LinkerScript.cpp:841
+ // symbols.
+ if (Cmd->Provide)
+ continue;
----------------
I also was wondered if we might want to abstract from `Provide` here and use something like
```
if (Cmd->Name != "." && !Cmd->Sym)
...
```
But I am not sure it worth doing.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D48771
More information about the llvm-commits
mailing list