|
|
179894 |
This patch is a downstream-only variant of this upstream commit:
|
|
|
179894 |
|
|
|
179894 |
commit 45b1e17e9150dbd9ac2d578579063fbfa8e1b327
|
|
|
179894 |
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
|
|
|
179894 |
Date: Thu Dec 17 10:03:05 2020 +0000
|
|
|
179894 |
|
|
|
179894 |
aarch64: use PTR_ARG and SIZE_ARG instead of DELOUSE
|
|
|
179894 |
|
|
|
179894 |
DELOUSE was added to asm code to make them compatible with non-LP64
|
|
|
179894 |
ABIs, but it is an unfortunate name and the code was not compatible
|
|
|
179894 |
with ABIs where pointer and size_t are different. Glibc currently
|
|
|
179894 |
only supports the LP64 ABI so these macros are not really needed or
|
|
|
179894 |
tested, but for now the name is changed to be more meaningful instead
|
|
|
179894 |
of removing them completely.
|
|
|
179894 |
|
|
|
179894 |
Some DELOUSE macros were dropped: clone, strlen and strnlen used it
|
|
|
179894 |
unnecessarily.
|
|
|
179894 |
|
|
|
179894 |
The out of tree ILP32 patches are currently not maintained and will
|
|
|
179894 |
likely need a rework to rebase them on top of the time64 changes.
|
|
|
179894 |
|
|
|
179894 |
Keeping the DELOUSE macro avoids the need to update all string
|
|
|
179894 |
functions. Lack of BTI markers and architecture variants cause many
|
|
|
179894 |
conflicts in a full upstream backport.
|
|
|
179894 |
|
|
|
179894 |
diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h
|
|
|
179894 |
index 5b30709436d3acea..1bcf15d4f18586ba 100644
|
|
|
179894 |
--- a/sysdeps/aarch64/sysdep.h
|
|
|
179894 |
+++ b/sysdeps/aarch64/sysdep.h
|
|
|
179894 |
@@ -32,6 +32,8 @@
|
|
|
179894 |
# define PTR_LOG_SIZE 2
|
|
|
179894 |
# define DELOUSE(n) mov w##n, w##n
|
|
|
179894 |
#endif
|
|
|
179894 |
+#define PTR_ARG(n) DELOUSE(n)
|
|
|
179894 |
+#define SIZE_ARG(n) DELOUSE(n)
|
|
|
179894 |
|
|
|
179894 |
#define PTR_SIZE (1<
|
|
|
179894 |
|