From 56dce92a3612d2f354c3e292d36b04ebb21881dc Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 10 Jul 2016 17:36:38 +0200 Subject: Add m68k tests Signed-off-by: Andreas Schwab --- backends/ChangeLog | 6 ++++++ backends/linux-core-note.c | 6 +++++- backends/m68k_corenote.c | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'backends') 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 + + * 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 * 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 -- cgit v1.2.1