[PATCH] D119074: [ELF] Parse archives as --start-lib object files

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 01:15:44 PST 2022


bd1976llvm added inline comments.


================
Comment at: lld/ELF/Driver.cpp:238
+    // that the symbols are only loaded once. For many projects archives see
+    // high utilization rates so in these cases it is a net performance win.
     // All files within the archive get the same group ID to allow mutual
----------------
Maybe worth expanding this some more: "--start-lib and --end-lib scans symbols in the same order that llvm-ar adds them, so in the common case the semantics should be identical. If the archive symbol table was created in a different order, or is incomplete, this strategy has different semantics, such cases are considered user error."


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119074



More information about the llvm-commits mailing list