summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSimon Tatham <simon.tatham@arm.com>2023-06-20 13:44:38 +0100
committerSimon Tatham <simon.tatham@arm.com>2023-06-27 13:22:06 +0100
commit8f208edd44d0832ac2580e0ec4238be4ecfd5737 (patch)
tree1a80614f1c1bfbe0d2f65728495834fe0efe5183 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent268032f6f10d595bb723f6b4a21632a9f3b35be8 (diff)
[ELFAttributeParser] Skip unknown vendor subsections.
An .ARM.attributes section is divided into subsections, each labelled with a vendor name. There is one standardised vendor name, which must be used for all attributes that affect compatibility. Subsections labelled with other vendor names can be used for optimisation purposes, but it has to be safe for an object file consumer to ignore them if it doesn't recognise the vendor name. LLD currently terminates parsing of the whole attributes section as soon as it encounters a subsection with a vendor name it doesn't recognise (which is anything other than the standard one). This can prevent it from detecting compatibility issues, if a standard subsection followed the vendor-specific one. This patch modifies the attribute parser so that unrecognised vendor subsections are silently skipped, and the subsections beyond them are still processed. Differential Revision: https://reviews.llvm.org/D153335
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions