diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-02-07 09:11:07 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-02-07 09:11:07 +0000 |
commit | 3d5e86e5ee8cbf39939f533dce4c002e8dbf139a (patch) | |
tree | 045b269e76574e47d89f702a549fd0555e71481f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 69246ca7879d81dc3f07d52f768f7550519fbcb6 (diff) | |
download | llvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.zip llvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.tar.gz llvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.tar.bz2 |
[ELF] - Remove unused synthetic sections correctly.
This is PR35740 which now crashes
because we remove unused synthetic sections incorrectly.
We can keep input section description and corresponding output
section live even if it must be empty and dead.
This results in a crash because SHF_LINK_ORDER handling code
tries to access first section which is nullptr in this case.
Patch fixes the issue.
Differential revision: https://reviews.llvm.org/D42681
llvm-svn: 324463
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions