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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 8 14:14:55 PST 2023


mstorsjo added a comment.

So - I'm not very familiar with the internals of static archives, can you elaborate a bit more on what `K_COFF` vs `K_GNU` means here. Is this a format flag which is written to the static archives themselves (I believe not?), or just different conventions for what details are written and found in the archives? Currently, when reading such archives, are they identified as `K_GNU` or `K_COFF`? And currently, before this patch, which mode is used? If I read the patch correctly (I just eyed it quickly) - `llvm-ar` will continue to write things like it used to, while `llvm-lib` will pick `K_COFF` (unless it's a thin library)?


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