[PATCH] D120345: [objcopy][NFC] Rename files to avoid clashing of archive members.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 12:29:22 PST 2022
MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.
> libtool uses file names to name members of an static library.
This is also a problem for regular (non-thin) archives in all(?) other formats, including GNU.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html says
> All file operands can be pathnames. However, files within archives shall be named by a filename, which is the last component of the pathname used when the file was entered into the archive. The comparison of file operands to the names of files in archives shall be performed by comparing the last component of the operand to the name of the file in the archive.
Having `/` is therefore not compliant.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120345/new/
https://reviews.llvm.org/D120345
More information about the llvm-commits
mailing list