[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI
From: |
Sergey Bugaev |
Subject: |
[RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI |
Date: |
Wed, 3 Jan 2024 20:14:47 +0300 |
If PROT_BTI is not defined, turn _dl_bti_protect () into a no-op.
We intend to support BTI & PROT_BTI on the Hurd eventually, but we're
not there yet.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
sysdeps/aarch64/dl-bti.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sysdeps/aarch64/dl-bti.c b/sysdeps/aarch64/dl-bti.c
index fd0d308a..4cf85630 100644
--- a/sysdeps/aarch64/dl-bti.c
+++ b/sysdeps/aarch64/dl-bti.c
@@ -28,6 +28,7 @@
/* Enable BTI protection for MAP. */
+#ifdef PROT_BTI
void
_dl_bti_protect (struct link_map *map, int fd)
{
@@ -59,6 +60,15 @@ _dl_bti_protect (struct link_map *map, int fd)
}
}
+#else /* PROT_BTI */
+void
+_dl_bti_protect (struct link_map *map, int fd)
+{
+ (void) map;
+ (void) fd;
+}
+#endif
+
static void
bti_failed (struct link_map *l, const char *program)
--
2.43.0
- Re: [PATCH 06/23] mach: Drop SNARF_ARGS macro, (continued)
- [RFC PATCH 09/23] hurd: Make init-first.c no longer x86-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 10/23] hurd: Only init early static TLS if it's used to store stack or pointer guards, Sergey Bugaev, 2024/01/03
- [RFC PATCH 11/23] hurd: Initializy _dl_pagesize early in static builds, Sergey Bugaev, 2024/01/03
- [RFC PATCH 12/23] aarch64: Make cpu-features definitions not Linux-specific, Sergey Bugaev, 2024/01/03
- [RFC PATCH 13/23] aarch64: Add dl-procinfo, Sergey Bugaev, 2024/01/03
- [RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI,
Sergey Bugaev <=
- [RFC PATCH 15/23] mach: Add a basic AArch64 port, Sergey Bugaev, 2024/01/03
- [RFC PATCH 16/23] hurd: Add a basic AArch64 port, Sergey Bugaev, 2024/01/03
- [RFC PATCH 19/23] Add FPE_FLTIDO, Sergey Bugaev, 2024/01/03
- [RFC PATCH 18/23] hurd: Implement longjmp for AArch64, Sergey Bugaev, 2024/01/03
- [RFC PATCH 21/23] htl: Implement some support for TLS_DTV_AT_TP, Sergey Bugaev, 2024/01/03
- [RFC PATCH 22/23] htl: Add an AArch64 implementation, Sergey Bugaev, 2024/01/03
- [RFC PATCH 17/23] hurd: Implement TLS on AArch64, Sergey Bugaev, 2024/01/03
- [RFC PATCH 23/23] hurd: Add expected aarch64-gnu abistlists, Sergey Bugaev, 2024/01/03
- [RFC PATCH 20/23] hurd: Add an AArch64 signal implementation, Sergey Bugaev, 2024/01/03
- [RFC PATCH 05/23] hurd: Disable Prefer_MAP_32BIT_EXEC on non-x86_64 for now, Sergey Bugaev, 2024/01/03