|
|
bca718 |
Backport of this upstream commit, with ports/ readded to the path.
|
|
|
bca718 |
|
|
|
bca718 |
commit b8528e771c0f31ebb8ac2470e2cf7ee9a50693e2
|
|
|
bca718 |
Author: Szabolcs Nagy <nsz@port70.net>
|
|
|
bca718 |
Date: Thu Jul 9 09:53:30 2015 +0100
|
|
|
bca718 |
|
|
|
bca718 |
[AArch64][BZ 18648] change greg_t definition in ucontext.h
|
|
|
bca718 |
|
|
|
bca718 |
This is an ABI breaking change, but
|
|
|
bca718 |
|
|
|
bca718 |
typedef int greg_t;
|
|
|
bca718 |
|
|
|
bca718 |
is not a useful definition on aarch64.
|
|
|
bca718 |
|
|
|
bca718 |
greg_t is usually used for defining gregset_t which is used
|
|
|
bca718 |
in mcontext_t. The general registers in mcontext_t can only
|
|
|
bca718 |
be accessed by target specific code and on aarch64 greg_t
|
|
|
bca718 |
is not needed for that so this change is not supposed to break
|
|
|
bca718 |
existing code, just fix the definition.
|
|
|
bca718 |
|
|
|
bca718 |
[BZ #18648]
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
|
|
|
bca718 |
definition to elf_greg_t.
|
|
|
bca718 |
|
|
|
bca718 |
(Added another BZ entry that was missed in the previous commit).
|
|
|
bca718 |
|
|
|
bca718 |
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
|
|
|
bca718 |
index db7a7c1..e7268ce 100644
|
|
|
bca718 |
--- a/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
|
|
|
bca718 |
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
included in <signal.h>. */
|
|
|
bca718 |
#include <bits/sigcontext.h>
|
|
|
bca718 |
|
|
|
bca718 |
-typedef int greg_t;
|
|
|
bca718 |
+typedef elf_greg_t greg_t;
|
|
|
bca718 |
|
|
|
bca718 |
/* Container for all general registers. */
|
|
|
bca718 |
typedef elf_gregset_t gregset_t;
|