diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-02-16 16:06:13 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-02-16 16:06:13 +0000 |
commit | 505ac8dc412aaedb8f53c7066e5d931e4f6dd073 (patch) | |
tree | 9864f51fbe01ecdbc88d59539316c7f6ab99b30c /clang/lib/CodeGen/CodeGenFunction.h | |
parent | cb2d95021497472c90f5c1b929084c400d98ecb3 (diff) | |
download | bcm5719-llvm-505ac8dc412aaedb8f53c7066e5d931e4f6dd073.tar.gz bcm5719-llvm-505ac8dc412aaedb8f53c7066e5d931e4f6dd073.zip |
[ELF] - Do not crash when discarding sections that are referenced by others.
SHF_LINK_ORDER sections adds special ordering requirements.
Such sections references other sections. Previously we would crash
if section that other were referenced to was discarded by script.
Patch fixes that by discarding all dependent sections in that case.
It supports chained dependencies, testcase is provided.
Differential revision: https://reviews.llvm.org/D30033
llvm-svn: 295332
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions