diff options
author | Fangrui Song <i@maskray.me> | 2020-10-27 09:30:10 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-10-28 08:56:42 -0700 |
commit | ae73091f30245852817c5c0af050a5a731dee50a (patch) | |
tree | e7dd04cb586b2c753e0090b42a8f7820715aa87e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 0d17dc2e75428885e37e53a1524ce7b607501cfa (diff) | |
download | llvm-ae73091f30245852817c5c0af050a5a731dee50a.zip llvm-ae73091f30245852817c5c0af050a5a731dee50a.tar.gz llvm-ae73091f30245852817c5c0af050a5a731dee50a.tar.bz2 |
[ELF] -r: don't crash when a non-SHF_LINK_ORDER orphan is added before a SHF_LINK_ORDER orphan
Fixes https://github.com/ClangBuiltLinux/linux/issues/1186
If a non-SHF_LINK_ORDER orphan is added first, `firstIsec->flags & SHF_LINK_ORDER`
will be zero and we currently assert when calling `getLinkOrderDep`.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D90200
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions