Commit a6aadc28 authored by Mark Brown's avatar Mark Brown Committed by Will Deacon

arm64: vdso: Annotate for BTI

Generate BTI annotations for all assembly files included in the 64 bit
vDSO.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200506195138.22086-10-broonie@kernel.orgSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 3a9b136c
...@@ -12,9 +12,12 @@ ...@@ -12,9 +12,12 @@
#include <linux/version.h> #include <linux/version.h>
#include <linux/elfnote.h> #include <linux/elfnote.h>
#include <linux/build-salt.h> #include <linux/build-salt.h>
#include <asm/assembler.h>
ELFNOTE_START(Linux, 0, "a") ELFNOTE_START(Linux, 0, "a")
.long LINUX_VERSION_CODE .long LINUX_VERSION_CODE
ELFNOTE_END ELFNOTE_END
BUILD_SALT BUILD_SALT
emit_aarch64_feature_1_and
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <linux/linkage.h> #include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/unistd.h> #include <asm/unistd.h>
.text .text
...@@ -24,3 +25,5 @@ SYM_FUNC_START(__kernel_rt_sigreturn) ...@@ -24,3 +25,5 @@ SYM_FUNC_START(__kernel_rt_sigreturn)
svc #0 svc #0
.cfi_endproc .cfi_endproc
SYM_FUNC_END(__kernel_rt_sigreturn) SYM_FUNC_END(__kernel_rt_sigreturn)
emit_aarch64_feature_1_and
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/const.h> #include <linux/const.h>
#include <asm/assembler.h>
#include <asm/page.h> #include <asm/page.h>
.globl vdso_start, vdso_end .globl vdso_start, vdso_end
...@@ -19,3 +20,5 @@ vdso_start: ...@@ -19,3 +20,5 @@ vdso_start:
vdso_end: vdso_end:
.previous .previous
emit_aarch64_feature_1_and
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment