[lld] [ELF] Fix unnecessary inclusion of unreferenced provide symbols (PR #84512)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 02:17:33 PDT 2024
================
@@ -2659,6 +2659,58 @@ static void postParseObjectFile(ELFFileBase *file) {
}
}
+// Returns true if the provide symbol should be added to the link.
----------------
partaror wrote:
Thank you for the suggestions. `LinkerScript` is a better place for these functions. I have moved the functions to `LinkerScript`. As a side-effect, I had to move the file static function `addUnusedUndefined` in `Driver.cpp` to the class `SymbolTable` because now both `Driver.cpp` and `LinkerScript.cpp` needed this function.
https://github.com/llvm/llvm-project/pull/84512
More information about the llvm-commits
mailing list