diff options
author | Fangrui Song <i@maskray.me> | 2024-01-08 21:13:27 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-01-08 21:13:27 -0800 |
commit | 0930f62cf600d9e2e9a45fef1b3a422d50be89d5 (patch) | |
tree | 3fff8c118e2027482cf9ef43bc12ac212a281d70 /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | b2b4ffbc9bdda617977cbece015b8ea5ac44c531 (diff) | |
download | llvm-0930f62cf600d9e2e9a45fef1b3a422d50be89d5.zip llvm-0930f62cf600d9e2e9a45fef1b3a422d50be89d5.tar.gz llvm-0930f62cf600d9e2e9a45fef1b3a422d50be89d5.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions