diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-03-27 12:38:54 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-30 11:05:22 +0000 |
commit | e701a4d51e6903da59086771f532928858839a2b (patch) | |
tree | ae8e62a4b1c622df6e025244af6a4bc6aa495113 | |
parent | f484427d10a5ff6c2437c2f7c671e9e552ad6766 (diff) | |
download | edk2-e701a4d51e6903da59086771f532928858839a2b.zip edk2-e701a4d51e6903da59086771f532928858839a2b.tar.gz edk2-e701a4d51e6903da59086771f532928858839a2b.tar.bz2 |
ArmPlatformPkg/PrePeiCore: Make vector table object BTI compatible
The object file containing the vector table does not contain any
callable functions, so it will not be implicitly annotated as BTI
compatible on BTI builds. So add the annotation by hand, and use the
'empty' type so we get the GNU ELF note but not the actual BTI opcode.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com>
-rw-r--r-- | ArmPlatformPkg/PrePeiCore/AArch64/Exception.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S b/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S index 43e40f9..ffb643a 100644 --- a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S +++ b/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S @@ -112,3 +112,5 @@ _DefaultSError_LowerA32: TO_HANDLER
VECTOR_END(PeiVectorTable)
+
+AARCH64_BTI_NOTE()
|