[all-commits] [llvm/llvm-project] 64a274: [LLD][COFF] Make /wholearchive thin-archive member...

bd1976bris via All-commits all-commits at lists.llvm.org
Thu Jul 24 02:59:35 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 64a274fadaf0ce2e560811c25f35c064b3960bfd
      https://github.com/llvm/llvm-project/commit/64a274fadaf0ce2e560811c25f35c064b3960bfd
  Author: bd1976bris <Ben.Dunbobbin at sony.com>
  Date:   2025-07-24 (Thu, 24 Jul 2025)

  Changed paths:
    M lld/COFF/Driver.cpp
    M lld/COFF/Driver.h
    M lld/test/COFF/thin-archive.s

  Log Message:
  -----------
  [LLD][COFF] Make /wholearchive thin-archive member identifiers consistent (#145487)

A thin archive is an archive/library format where the archive itself
contains only references to member object files on disk, rather than
embedding the file contents.

For the non-/wholearchive case, we use the path to the archive member as
the identifier for thin-archive members (see comments in
`enqueueArchiveMember`). This patch modifies the /wholearchive path to
behave the same way.

Apart from consistency, my motivation for fixing this is DTLTO
(#126654), where having the member identifier be the path on disk allows
distribution of bitcode members during ThinLTO.

(cherry picked from commit 9f733f4324412ef89cc7729bf027cdcab912ceff)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list