[all-commits] [llvm/llvm-project] 0930f6: [ELF] -r: fix crash when SHF_LINK_ORDER linked-to ...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jan 8 21:13:41 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0930f62cf600d9e2e9a45fef1b3a422d50be89d5
https://github.com/llvm/llvm-project/commit/0930f62cf600d9e2e9a45fef1b3a422d50be89d5
Author: Fangrui Song <i at maskray.me>
Date: 2024-01-08 (Mon, 08 Jan 2024)
Changed paths:
M lld/ELF/LinkerScript.cpp
A lld/test/ELF/linkorder-group.test
Log Message:
-----------
[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.
More information about the All-commits
mailing list