Commit 0930f62c authored by Fangrui Song's avatar Fangrui Song
Browse files

[ELF] -r: fix crash when SHF_LINK_ORDER linked-to section has a larger index

Fixes: b8dface2

ThinLTO asan build may place `asan_globals` before the associated `.bss.xxx` section.
`rel->getOutputSection()` is nullptr because `rel->parent` hasn't been
set, leading to a crash. Simplify return `s->name` in this case.
parent b2b4ffbc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment