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.
Differential D90200
[ELF] -r: don't crash when a non-SHF_LINK_ORDER orphan is added before a SHF_LINK_ORDER orphan MaskRay on Oct 26 2020, 5:21 PM. Authored by
Details Fixes https://github.com/ClangBuiltLinux/linux/issues/1186 If a non-SHF_LINK_ORDER orphan is added first, firstIsec->flags & SHF_LINK_ORDER
Diff Detail
Event Timeline |
Probably you shouldn't use auto, because the return type is not obvious here.