瀏覽代碼

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>
Ard Biesheuvel 1 年之前
父節點
當前提交
e701a4d51e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      ArmPlatformPkg/PrePeiCore/AArch64/Exception.S

+ 2 - 0
ArmPlatformPkg/PrePeiCore/AArch64/Exception.S

@@ -112,3 +112,5 @@ _DefaultSError_LowerA32:
   TO_HANDLER
 
 VECTOR_END(PeiVectorTable)
+
+AARCH64_BTI_NOTE()