diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2018-09-04 22:28:49 +0000 |
|---|---|---|
| committer | Jordan Rupprecht <rupprecht@google.com> | 2018-09-04 22:28:49 +0000 |
| commit | ec277a827815015e516ea08d79bbd4c64259c3d1 (patch) | |
| tree | 5a7b0b395611a8c7d89b446909b62f4f9aa81bbe /clang/lib/Basic/VirtualFileSystem.cpp | |
| parent | 034423377cf8ef69ff248b69b4487b0b7b00ab81 (diff) | |
| download | llvm-ec277a827815015e516ea08d79bbd4c64259c3d1.zip llvm-ec277a827815015e516ea08d79bbd4c64259c3d1.tar.gz llvm-ec277a827815015e516ea08d79bbd4c64259c3d1.tar.bz2 | |
[llvm-strip] Allow copying relocation sections without symbol tables.
Summary:
Fixes the error "Link field value 0 in section .rela.plt is invalid" when copying/stripping certain binaries. Minimal repro:
```
$ cat /tmp/a.c
int main() { return 0; }
$ clang -static /tmp/a.c -o /tmp/a
$ llvm-strip /tmp/a -o /tmp/b
llvm-strip: error: Link field value 0 in section .rela.plt is invalid.
```
Reviewers: jakehehrlich, alexshap
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D51493
llvm-svn: 341419
Diffstat (limited to 'clang/lib/Basic/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions
