[PATCH] D81930: [AArch64] Add -mbti flag.
Daniel Kiss via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 05:31:44 PDT 2020
danielkiss created this revision.
danielkiss added reviewers: nsz, tamas.petz, pbarrio, ostannard, chill.
Herald added subscribers: llvm-commits, cfe-commits, hiraditya, kristof.beyls.
Herald added projects: clang, LLVM.
Writing the .note.gnu.property manually is error prone and hard to
maintain in the assembly files.
The -mbti 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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81930
Files:
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
clang/test/Driver/arm64-markbti.S
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
llvm/lib/Target/AArch64/AArch64Subtarget.h
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81930.271059.patch
Type: text/x-patch
Size: 11319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200616/d11a4c3b/attachment-0001.bin>
More information about the cfe-commits
mailing list