diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-11-14 17:29:03 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-25 13:03:28 +0000 |
commit | 2e13f27e38a7e366e8ce12bd22aa072a7bf89068 (patch) | |
tree | 2bc963b4bf5cd06b47e9475fb1ecf21306abc929 /meta/recipes-devtools/elfutils/elfutils-0.148/fix_for_gcc-4.7.patch | |
parent | fa234ef4e0855bfcd0411c6039d941c59d421b36 (diff) | |
download | poky-2e13f27e38a7e366e8ce12bd22aa072a7bf89068.tar.gz |
elfutils: upgrade to 0.160
- Upgrade elfutils to 0.160
- Move 0.148 patches from elfutils to elfutils-0.148
- Drop 0.158 patches that got from debain, so far debian
doesn't provide patches for 0.160 (the latest is 0.159)
- Move fixheadercheck.patch from 0.159 to 0.160
- We choose to use 0.159 patches from debian for the current 0.160
which located in elfutils-0.160
1) Rebase the following patches from 0.159 to 0.160
hppa_backend.diff
arm_backend.diff
mips_backend.diff
m68k_backend.diff
arm_func_value.patch
arm_unwind_ret_mask.patch
2) Rebase redhat-portability.diff according to
commit 52a6d20519870103134166d91e22d21fd736195d
Author: Roxana Ciobanu <roxana.ciobanu@intel.com>
Date: Tue Jul 1 17:17:00 2014 +0300
elfutils/elfutils-native: Fix patching generated files
3) Drop the following patches which have already beem merged to 0.160
arm_unsupported.patch
arm_syscall.patch
unaligned.patch
aarch64-run-native-test-fix.patch
(From OE-Core rev: 74b191022494fc1d357c1f05dbce38c986bed365)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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/elfutils-0.148/fix_for_gcc-4.7.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.148/fix_for_gcc-4.7.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.148/fix_for_gcc-4.7.patch b/meta/recipes-devtools/elfutils/elfutils-0.148/fix_for_gcc-4.7.patch new file mode 100644 index 0000000000..bd634b4418 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.148/fix_for_gcc-4.7.patch | |||
@@ -0,0 +1,73 @@ | |||
1 | Upstream-Status: pending | ||
2 | gcc 4.7 does not like pointer conversion, so have a void * tmp var to work | ||
3 | around following compilation issue. | ||
4 | |||
5 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
6 | 2011/07/07 | ||
7 | |||
8 | | md5.c: In function 'md5_finish_ctx': | ||
9 | | md5.c:108:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] | ||
10 | | md5.c:109:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] | ||
11 | | cc1: all warnings being treated as errors | ||
12 | | | ||
13 | | make[2]: *** [md5.o] Error 1 | ||
14 | | make[2]: *** Waiting for unfinished jobs.... | ||
15 | | sha1.c: In function 'sha1_finish_ctx': | ||
16 | | sha1.c:109:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] | ||
17 | | sha1.c:111:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] | ||
18 | | cc1: all warnings being treated as errors | ||
19 | | | ||
20 | | make[2]: *** [sha1.o] Error 1 | ||
21 | |||
22 | Index: elfutils-0.148/lib/md5.c | ||
23 | =================================================================== | ||
24 | --- elfutils-0.148.orig/lib/md5.c | ||
25 | +++ elfutils-0.148/lib/md5.c | ||
26 | @@ -95,6 +95,7 @@ md5_finish_ctx (ctx, resbuf) | ||
27 | /* Take yet unprocessed bytes into account. */ | ||
28 | md5_uint32 bytes = ctx->buflen; | ||
29 | size_t pad; | ||
30 | + void * tmp; | ||
31 | |||
32 | /* Now count remaining bytes. */ | ||
33 | ctx->total[0] += bytes; | ||
34 | @@ -105,9 +106,10 @@ md5_finish_ctx (ctx, resbuf) | ||
35 | memcpy (&ctx->buffer[bytes], fillbuf, pad); | ||
36 | |||
37 | /* Put the 64-bit file length in *bits* at the end of the buffer. */ | ||
38 | - *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); | ||
39 | - *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | | ||
40 | - (ctx->total[0] >> 29)); | ||
41 | + tmp = &ctx->buffer[bytes + pad]; | ||
42 | + *(md5_uint32 *) tmp = SWAP (ctx->total[0] << 3); | ||
43 | + tmp = &ctx->buffer[bytes + pad + 4]; | ||
44 | + *(md5_uint32 *) tmp = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); | ||
45 | |||
46 | /* Process last bytes. */ | ||
47 | md5_process_block (ctx->buffer, bytes + pad + 8, ctx); | ||
48 | Index: elfutils-0.148/lib/sha1.c | ||
49 | =================================================================== | ||
50 | --- elfutils-0.148.orig/lib/sha1.c | ||
51 | +++ elfutils-0.148/lib/sha1.c | ||
52 | @@ -96,6 +96,7 @@ sha1_finish_ctx (ctx, resbuf) | ||
53 | /* Take yet unprocessed bytes into account. */ | ||
54 | sha1_uint32 bytes = ctx->buflen; | ||
55 | size_t pad; | ||
56 | + void * tmp; | ||
57 | |||
58 | /* Now count remaining bytes. */ | ||
59 | ctx->total[0] += bytes; | ||
60 | @@ -106,9 +107,10 @@ sha1_finish_ctx (ctx, resbuf) | ||
61 | memcpy (&ctx->buffer[bytes], fillbuf, pad); | ||
62 | |||
63 | /* Put the 64-bit file length in *bits* at the end of the buffer. */ | ||
64 | - *(sha1_uint32 *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | | ||
65 | - (ctx->total[0] >> 29)); | ||
66 | - *(sha1_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); | ||
67 | + tmp = &ctx->buffer[bytes + pad]; | ||
68 | + *(sha1_uint32 *) tmp = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); | ||
69 | + tmp = &ctx->buffer[bytes + pad + 4]; | ||
70 | + *(sha1_uint32 *) tmp = SWAP (ctx->total[0] << 3); | ||
71 | |||
72 | /* Process last bytes. */ | ||
73 | sha1_process_block (ctx->buffer, bytes + pad + 8, ctx); | ||