[PATCH] D141154: [fs] Prevent symlink destroying.

Dmitriy Chestnykh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 11:51:33 PST 2023


chestnykh created this revision.
chestnykh added a reviewer: jakehehrlich.
Herald added a subscriber: hiraditya.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: jhenderson.
Herald added a project: All.
chestnykh requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

If we open symlink with llvm-strip then the current behaviour is to destroy it and create
new regular file. This behaviour is different from the behaviour of binutils strip.
The new behaviour is to modify the real file and to keep symlink.
PR#59848


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141154

Files:
  0001-fs-Prevent-symlink-destroying.patch
  llvm/lib/Support/raw_ostream.cpp
  llvm/test/tools/llvm-objcopy/keep-dso-symlink.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141154.486954.patch
Type: text/x-patch
Size: 4653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230106/d5d697af/attachment.bin>


More information about the llvm-commits mailing list