summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2016-07-10 17:36:38 +0200
committerMark Wielaard <mjw@redhat.com>2016-07-11 10:22:18 +0200
commit56dce92a3612d2f354c3e292d36b04ebb21881dc (patch)
tree8bb7c105305db01139bc2cf7cd6c3bd7f832a98a /backends
parent8c481b6fc53a1d1f50518896004dc5221862e126 (diff)
Add m68k tests
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Diffstat (limited to 'backends')
-rw-r--r--backends/ChangeLog6
-rw-r--r--backends/linux-core-note.c6
-rw-r--r--backends/m68k_corenote.c1
3 files changed, 12 insertions, 1 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog
index 7cd19065..af32d8f9 100644
--- a/backends/ChangeLog
+++ b/backends/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-10 Andreas Schwab <schwab@linux-m68k.org>
+
+ * m68k_corenote.c (ALIGN_PRSTATUS): Define.
+ * linux-core-note.c (struct EBLHOOK(prstatus)): Set alignment to
+ ALIGN_PRSTATUS if defined.
+
2016-06-28 Richard Henderson <rth@redhat.com>
* Makefile.am (modules): Add bpf.
diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c
index c00c0b17..a4ec0be0 100644
--- a/backends/linux-core-note.c
+++ b/backends/linux-core-note.c
@@ -109,7 +109,11 @@ struct EBLHOOK(prstatus)
#endif
;
FIELD (INT, pr_fpvalid);
-};
+}
+#ifdef ALIGN_PRSTATUS
+ __attribute__ ((packed, aligned (ALIGN_PRSTATUS)))
+#endif
+;
#define FNAMESZ 16
#define PRARGSZ 80
diff --git a/backends/m68k_corenote.c b/backends/m68k_corenote.c
index e839edfd..3c1d019f 100644
--- a/backends/m68k_corenote.c
+++ b/backends/m68k_corenote.c
@@ -57,6 +57,7 @@ static const Ebl_Register_Location prstatus_regs[] =
#define ALIGN_PID_T 2
#define ALIGN_UID_T 2
#define ALIGN_GID_T 2
+#define ALIGN_PRSTATUS 2
#define TYPE_ULONG ELF_T_WORD
#define TYPE_PID_T ELF_T_SWORD
#define TYPE_UID_T ELF_T_HALF