summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-03-23 06:34:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-28 12:09:51 +0100
commitf67a0bae8bc22d227f73579b2bc780719bbdeb1b (patch)
tree690fbd70d135b224a5b1e9a7f0a69a43efced6ef /meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch
parent442ec58c9066303c053d7ad138c1ad699963c0e9 (diff)
downloadpoky-f67a0bae8bc22d227f73579b2bc780719bbdeb1b.tar.gz
elfutils: Fix gcc compile time alignment errors
Allow devtool to organize the SRC_URI (From OE-Core rev: 49aae1d75ff1c6a9643c30a8cc5776a2ffa83dd3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch b/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch
new file mode 100644
index 0000000000..cf4d1dfe75
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/0001-Ensure-that-packed-structs-follow-the-gcc-memory-lay.patch
@@ -0,0 +1,34 @@
1From 732913a8c35c7b25c0cbf6903cab1ad6b602b525 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 22 Mar 2018 22:44:03 -0700
4Subject: [PATCH] Ensure that packed structs follow the gcc memory layout
5
6Partial backport of
7https://sourceware.org/git/?p=elfutils.git;a=commit;h=17d7194d291bf91d130b78e06cbe27b290e0376d
8
9Helps fixing alignment errors e.g.
10linux-core-note.c:116:1: error: alignment 2 of 'struct m68k_prstatus
11' is less than 4 [-Werror=packed-not-aligned]
12 ;
13 ^
14
15Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=17d7194d291bf91d130b78e06cbe27b290e0376d]
16
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 backends/linux-core-note.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c
23index 5f06c896..9faae4c3 100644
24--- a/backends/linux-core-note.c
25+++ b/backends/linux-core-note.c
26@@ -111,7 +111,7 @@ struct EBLHOOK(prstatus)
27 FIELD (INT, pr_fpvalid);
28 }
29 #ifdef ALIGN_PRSTATUS
30- __attribute__ ((packed, aligned (ALIGN_PRSTATUS)))
31+ attribute_packed __attribute__ ((aligned (ALIGN_PRSTATUS)))
32 #endif
33 ;
34