[v2,09/13] aarch64: fix syscalls for BTI

Message ID 71ddb49c566feb4a5ebd96b421cf41f9f7954815.1589277641.git.szabolcs.nagy@arm.com
State New
Headers show
Series
  • aarch64: branch protection support
Related show

Commit Message

Szabolcs Nagy May 12, 2020, 10:14 a.m.
Syscall asm code needs an ELF property marking for BTI
when glibc is built with BTI support so we add AArch64
variants of syscall-template.S.
---
 .../sysv/linux/aarch64/syscall-template.S     | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 sysdeps/unix/sysv/linux/aarch64/syscall-template.S

-- 
2.17.1

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/syscall-template.S b/sysdeps/unix/sysv/linux/aarch64/syscall-template.S
new file mode 100644
index 0000000000..50db585289
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/aarch64/syscall-template.S
@@ -0,0 +1,20 @@ 
+/* Assembly code template for system call stubs.
+   Copyright (C) 2020 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
+
+#include <sysdeps/unix/syscall-template.S>
+END_FILE