[all-commits] [llvm/llvm-project] 213d18: [ELF] Improve sh_info=0 and sh_info>=num_sections ...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Nov 9 09:54:24 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 213d1849a4b9f5579c964086097391907df37a04
https://github.com/llvm/llvm-project/commit/213d1849a4b9f5579c964086097391907df37a04
Author: Fangrui Song <i at maskray.me>
Date: 2021-11-09 (Tue, 09 Nov 2021)
Changed paths:
M lld/ELF/InputFiles.cpp
M lld/ELF/InputFiles.h
R lld/test/ELF/invalid-relocations.test
M lld/test/ELF/invalid/bad-reloc-target.test
Log Message:
-----------
[ELF] Improve sh_info=0 and sh_info>=num_sections diagnostic for SHT_REL/SHT_RELA
PR52408 reported an sh_info=0 instance. I have seen sh_info=0
independently before.
sh_info>=num_sections is probably very rare. Just use one diagnostic for
the two types of errors.
Delete invalid-relocations.test which is covered by invalid/bad-reloc-target.test
Differential Revision: https://reviews.llvm.org/D113466
More information about the All-commits
mailing list