HomePhabricator

[ELF] Allow reading of more than one FEATURE_1_AND in same object.

Description

[ELF] Allow reading of more than one FEATURE_1_AND in same object.

Although many relocatable objects will have a single
GNU_PROPERTY_X86_FEATURE_1_AND in the .note.gnu.property section it is
permissible to have more than one, and there are tests in ld.bfd that use
it. The behavior that ld.bfd follows is to set the feature bit for a
relocatable object if any of the GNU_PROPERTY_X86_FEATURE_1_AND
have the feature bit set.

Differential Revision: https://reviews.llvm.org/D62862

Details

Committed
psmithJun 5 2019, 2:31 AM
Differential Revision
D62862: [ELF][LLD] Allow reading of more than one FEATURE_1_AND in same object.
Parents
rL362590: Include what you use in PPCFrameLowering.h
Branches
Unknown
Tags
Unknown