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

Commit
1 year ago
[ELF] -r: fix crash when SHF_LINK_ORDER linked-to section has a larger index Fixes: b8dface221f4490933b0d39deb769e97ca134e5f 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.
Author
Parents
Loading