aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-01-08 21:13:27 -0800
committerFangrui Song <i@maskray.me>2024-01-08 21:13:27 -0800
commit0930f62cf600d9e2e9a45fef1b3a422d50be89d5 (patch)
tree3fff8c118e2027482cf9ef43bc12ac212a281d70 /llvm/lib/CodeGen/BasicBlockSections.cpp
parentb2b4ffbc9bdda617977cbece015b8ea5ac44c531 (diff)
downloadllvm-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