diff options
author | Mark Wielaard <mark@klomp.org> | 2017-10-24 14:23:30 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-10-26 16:26:37 +0200 |
commit | ab6b37ac32ddf2f2f11f800a770170814f5cbb8b (patch) | |
tree | 373f570b4d17ba3ac6fc7411460928b3a5ddc6ce /backends | |
parent | a5c72418f5373e8f75a5260c1e75d3f74747f168 (diff) |
backends: Ignore GCC8 -Wpacked-not-aligned for m68k_corenote.c.
The GCC8 -Wpacked-not-aligned warns if a structure field with explicit
padding in a packed structure will be misaligned. m68k prstatus core
notes are described by a packed structure which has such aligned structure
fields.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/ChangeLog | 4 | ||||
-rw-r--r-- | backends/Makefile.am | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index 8c3f42c6..190ae968 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7 @@ +2017-10-24 Mark Wielaard <mark@klomp.org> + + * Makefile.am (m68k_corenote_no_Wpacked_not_aligned): New variable. + 2017-08-18 Ulf Hermann <ulf.hermann@qt.io> * linux-core-note.c: Use attribute_packed. diff --git a/backends/Makefile.am b/backends/Makefile.am index 0fde0cb0..2c62add2 100644 --- a/backends/Makefile.am +++ b/backends/Makefile.am @@ -119,6 +119,13 @@ m68k_SRCS = m68k_init.c m68k_symbol.c m68k_regs.c \ libebl_m68k_pic_a_SOURCES = $(m68k_SRCS) am_libebl_m68k_pic_a_OBJECTS = $(m68k_SRCS:.c=.os) +# m68k prstatus core notes are described by a packed structure +# which has not naturally aligned fields. Since we don't access +# these fields directly, but take their offset to be used later +# to extract the data through elfxx_xlatetom/memmove, this isn't +# an issue. +m68k_corenote_no_Wpacked_not_aligned = yes + bpf_SRCS = bpf_init.c bpf_regs.c cpu_bpf = ../libcpu/libcpu_bpf.a libebl_bpf_pic_a_SOURCES = $(bpf_SRCS) |