[PATCH] D113466: [ELF] Improve sh_info=0 and sh_info>=num_sections diagnostic for SHT_REL/SHT_RELA
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 00:16:34 PST 2021
MaskRay created this revision.
MaskRay added reviewers: jhenderson, peter.smith.
Herald added subscribers: arichardson, emaste.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113466
Files:
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/test/ELF/invalid-relocations.test
lld/test/ELF/invalid/bad-reloc-target.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113466.385714.patch
Type: text/x-patch
Size: 4109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211109/dcc237cf/attachment.bin>
More information about the llvm-commits
mailing list