]> xenbits.xensource.com Git - ovmf.git/commitdiff
ArmVirtPkg/ArmPlatformLibQemu: Make IdMap.S BTI compatible
authorArd Biesheuvel <ardb@kernel.org>
Thu, 30 Mar 2023 07:16:19 +0000 (09:16 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 30 Mar 2023 11:05:22 +0000 (11:05 +0000)
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>
ArmVirtPkg/Library/ArmPlatformLibQemu/IdMap.S

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