diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-04-26 15:29:04 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-08-05 19:45:19 +0100 |
commit | 4fc40722403a0e88a35764b676819cba3a0e821c (patch) | |
tree | 6c07d6fd1217dbf4b0b0435d15011e3672a43eb1 /sysdeps | |
parent | 570f6858b7a0c809a2480fbbfcd9f667a0bffd74 (diff) | |
download | glibc-4fc40722403a0e88a35764b676819cba3a0e821c.zip glibc-4fc40722403a0e88a35764b676819cba3a0e821c.tar.gz glibc-4fc40722403a0e88a35764b676819cba3a0e821c.tar.bz2 |
aarch64: morello: Use separate lp64 and morello sysdep directories
Provide separate directories for lp64 and purecap abi related sysdep
functionality.
purecap may be better name than morello, but we started with morello
and that is more future compatible with alternative cheri-like
extensions on top of aarch64.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/aarch64/preconfigure | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/aarch64/preconfigure b/sysdeps/aarch64/preconfigure index d9bd1f8..4d9d137 100644 --- a/sysdeps/aarch64/preconfigure +++ b/sysdeps/aarch64/preconfigure @@ -1,6 +1,11 @@ case "$machine" in aarch64*) base_machine=aarch64 - machine=aarch64 + if $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep -q __CHERI_PURE_CAPABILITY__ + then + machine=aarch64/morello + else + machine=aarch64/lp64 + fi ;; esac |