llvm/tools/llvm-objcopy
Jordan Rupprecht e15daa3dfb [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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341419 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-04 22:28:49 +00:00
..
CMakeLists.txt [tools] Introduce llvm-strip 2018-05-07 19:32:09 +00:00
llvm-objcopy.cpp Revert r341342: Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-04 11:55:57 +00:00
llvm-objcopy.h [NFC][llvm-objcopy] Cleanup namespace usage in llvm-objcopy. 2018-07-18 00:10:51 +00:00
LLVMBuild.txt Recommit "[llvm-objcopy] Switch over to using TableGen for parsing arguments" 2018-04-24 05:43:32 +00:00
ObjcopyOpts.td Revert r341342: Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-04 11:55:57 +00:00
Object.cpp [llvm-strip] Allow copying relocation sections without symbol tables. 2018-09-04 22:28:49 +00:00
Object.h Revert r341342: Dwarf .debug section compression support (zlib, zlib-gnu). 2018-09-04 11:55:57 +00:00
StripOpts.td [llvm-strip] Add support for -p/--preserve-dates 2018-08-16 18:29:40 +00:00