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