diff options
author | Fangrui Song <i@maskray.me> | 2020-12-16 08:59:38 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-16 08:59:38 -0800 |
commit | 16cb7910f51f0c2570b1f3406bcd8d4069e52a3e (patch) | |
tree | 3b17759f3f47451b7975c90501c0db30a15c780f /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | b607837c75d04cc007dcf855983dfa3b69f63d73 (diff) | |
download | llvm-16cb7910f51f0c2570b1f3406bcd8d4069e52a3e.zip llvm-16cb7910f51f0c2570b1f3406bcd8d4069e52a3e.tar.gz llvm-16cb7910f51f0c2570b1f3406bcd8d4069e52a3e.tar.bz2 |
[ELF] --emit-relocs: fix a crash if .rela.dyn is an empty output section
Fix PR48357: If .rela.dyn appears as an output section description, its type may
be SHT_RELA (due to the empty synthetic .rela.plt) while there is no input
section. The empty .rela.dyn may be retained due to a reference in a linker
script. Don't crash.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D93367
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions