llvm-project/llvm/test/tools/llvm-objcopy
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
..
COFF [llvm-objcopy] [COFF] Fix a misconception about debug directory payloads 2020-04-29 20:35:36 +03:00
ELF [llvm-objcopy] Fix crash when removing symbol table at same time as adding a symbol 2020-07-05 05:14:00 +03:00
Inputs [llvm-objcopy] [COFF] Fix handling of aux symbols for big objects 2019-01-23 11:54:51 +00:00
MachO [llvm-install-name-tool] Tighten some path checks 2020-06-30 17:20:00 -07:00
wasm [llvm-objcopy] Fix pipeline syntax 2020-02-12 11:35:00 +01:00
redefine-symbols.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00
tool-help-message.test [llvm-objcopy] Update help message tests 2020-06-24 12:40:31 -07:00
tool-name.test [llvm-objcopy] Improve tool selection logic to recognize llvm-strip-$major as strip 2020-03-23 13:49:26 -07:00