HomePhabricator

[AArch64] Add -mmark-bti-property flag.

Authored by danielkiss on Sep 16 2020, 2:55 PM.

Description

[AArch64] Add -mmark-bti-property flag.

Writing the .note.gnu.property manually is error prone and hard to
maintain in the assembly files.
The -mmark-bti-property is for the assembler to emit the section with the
GNU_PROPERTY_AARCH64_FEATURE_1_BTI. To be used when C/C++ is compiled
with -mbranch-protection=bti.

This patch refactors the .note.gnu.property handling.

Reviewed By: chill, nickdesaulniers

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

Reland with test dependency on aarch64 target.

Details

Committed
danielkissSep 16 2020, 4:18 PM
Reviewer
chill
Differential Revision
D81930: [AArch64] Add -mmark-bti-property flag.
Parents
rG60e244f82c1f: Revert "[AArch64] Add -mmark-bti-property flag."
Branches
Unknown
Tags
Unknown