llvm-project/llvm/tools/llvm-objcopy/ELF
Georgy Komarov afd81a637d
[llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol
This patch resolves crash that occurs when user wanted to remove all
symbols and add a brand new one using:

```
llvm-objcopy -R .symtab --add-symbol foo=1234 in.o out.o
```

Before these changes the symbol table internally being null when adding
new symbols. For now we will regenerate symtab in this case.

This fixes: https://bugs.llvm.org/show_bug.cgi?id=43930

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D82935
2020-07-05 05:14:00 +03:00
..
ELFConfig.cpp [llvm-objcopy] Refactor ELF-specific config out to ELFCopyConfig. NFC. 2019-09-24 09:38:23 +00:00
ELFConfig.h [llvm-objcopy] Refactor ELF-specific config out to ELFCopyConfig. NFC. 2019-09-24 09:38:23 +00:00
ELFObjcopy.cpp [llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol 2020-07-05 05:14:00 +03:00
ELFObjcopy.h [llvm-objcopy] Implement IHEX reader 2019-06-13 09:56:14 +00:00
Object.cpp [llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol 2020-07-05 05:14:00 +03:00
Object.h [llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol 2020-07-05 05:14:00 +03:00