diff options
author | Georgy Komarov <jubnzv@gmail.com> | 2020-07-01 10:15:39 +0300 |
---|---|---|
committer | Georgy Komarov <jubnzv@gmail.com> | 2020-07-05 05:14:00 +0300 |
commit | afd81a637dfc79d2960ef8add1c697cb81c929ef (patch) | |
tree | 313be71183ccb3ce30227d918a1ec27d3642b8b5 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 65330f394b2c5ede01acb97a84112c3cc0127c46 (diff) | |
download | llvm-afd81a637dfc79d2960ef8add1c697cb81c929ef.zip llvm-afd81a637dfc79d2960ef8add1c697cb81c929ef.tar.gz llvm-afd81a637dfc79d2960ef8add1c697cb81c929ef.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions