]> granicus.if.org Git - llvm/commit
[llvm-objcopy] Change handling of output file permissions
authorAlex Brachet <alexbrachetmialot@gmail.com>
Thu, 4 Jul 2019 22:45:27 +0000 (22:45 +0000)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Thu, 4 Jul 2019 22:45:27 +0000 (22:45 +0000)
commitddccd1de09cfc47ab9a6e7e10184100006d8b6c4
tree5c5ec3ac6b747026b39c44e5d75315814245c697
parent955dea43de29662885a17761edaec7cfe81dd36a
[llvm-objcopy] Change handling of output file permissions

Summary: Address bug [[ https://bugs.llvm.org/show_bug.cgi?id=42082 | 42082 ]] where files were always outputted with 0775 permissions. Now, the output file is given either 0666 or 0777 if the object is executable.

Reviewers: espindola, alexshap, rupprecht, jhenderson, jakehehrlich, MaskRay

Reviewed By: rupprecht, jhenderson, jakehehrlich, MaskRay

Subscribers: emaste, arichardson, jakehehrlich, MaskRay, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62718

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365162 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/mirror-permissions-unix.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/mirror-permissions-win.test [new file with mode: 0644]
test/tools/llvm-objcopy/ELF/respect-umask.test [new file with mode: 0644]
tools/llvm-objcopy/llvm-objcopy.cpp