[PATCH] D151839: [LinkerWrapper] Fix static library symbol resolution

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 31 16:09:53 PDT 2023


jhuber6 added inline comments.


================
Comment at: clang/test/Driver/linker-wrapper-libs.c:27
 //
 // Check that we extract a static library defining an undefined symbol.
 //
----------------
tra wrote:
> How does this test test the functionality of the undefined symbol? E.g. how does it fail now, before the patch?
> 
> Is there an explicit check we could to do to make sure things work as intended as opposed to "there's no obvious error" which may also mean "we forgot to process *undefined.bc".
Yeah, I wasn't sure how to define a good test for this. The problem I encountered before making this patch was that having another file that used an undefined symbol would override the `NewSymbol` check and then would prevent it from being extracted. So this checks that case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151839



More information about the cfe-commits mailing list