[PATCH] D143540: [llvm-lib] Add support for writing COFF archives.

Jacek Caban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 15:16:38 PST 2023


jacek added inline comments.


================
Comment at: llvm/test/tools/llvm-lib/duplicate.test:20
+RUN: cd %t && llvm-lib -out:foo.lib foo.o foo.o abc.o bar.o  foo.o foo.o
+RUN: llvm-nm --print-armap %t/foo.lib | FileCheck %s --check-prefix=DUP
+# DUP: Archive map
----------------
mstorsjo wrote:
> Before this change, would `--print-armap` not have printed anything at all, or what's the change in externally visible functionality here?
Without this patch, it would print duplicated and unsorted symbols:
```
Archive map
b in bar.o
c in abc.o
a in abc.o
b in abc.o
a in foo.o
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143540



More information about the llvm-commits mailing list