Sfoglia il codice sorgente

ArmVirtPkg/ArmPlatformLibQemu: Make IdMap.S BTI compatible

The IdMap.S asm source file has not executable content, but its lack of
a BTI annotation prevents the linker from marking any executables it
emits as BTI compatible if this object is part of the build. So add the
BTI note by hand.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Ard Biesheuvel 1 anno fa
parent
commit
3b4d1b38ea
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      ArmVirtPkg/Library/ArmPlatformLibQemu/IdMap.S

+ 2 - 0
ArmVirtPkg/Library/ArmPlatformLibQemu/IdMap.S

@@ -57,3 +57,5 @@ idmap:      /* level 0 */
   .quad     PAGE_XIP | (idx << 12)        // 2044 KiB of R-X flash mappings
   .set      idx, idx + 1
   .endr
+
+AARCH64_BTI_NOTE()