[v2,10/20] aarch64: Allow building without kernel support for BTI
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Testing passed
|
Commit Message
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(+)
@@ -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)