diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2017-02-06 04:34:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-15 20:06:42 -0800 |
commit | f0a300c44ddcc44fd81a6362944411f138d96aa9 (patch) | |
tree | 79da36efe6d558a3a3ea3afe82d5ecfed2879647 /meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch | |
parent | edd51e8659ca03a8f7a06f563e90fb4f0e5aa060 (diff) | |
download | poky-f0a300c44ddcc44fd81a6362944411f138d96aa9.tar.gz |
elfutils: 0.166 -> 0.168
- Backport patches from debian to 0.168 and add US tags.
- Rebase 0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch to support libc musl
(From OE-Core rev: 13e5819dc4ef44d99d0f22686365fd3c988d6bce)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch b/meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch new file mode 100644 index 0000000000..6923bf7053 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.168/0001-fix-a-stack-usage-warning.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | [PATCH] fix a stack-usage warning | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | not use a variable to as a array size, otherwise the warning to error that | ||
6 | stack usage might be unbounded [-Werror=stack-usage=] will happen | ||
7 | |||
8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
9 | --- | ||
10 | backends/ppc_initreg.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/backends/ppc_initreg.c b/backends/ppc_initreg.c | ||
14 | index 64f5379..52dde3e 100644 | ||
15 | --- a/backends/ppc_initreg.c | ||
16 | +++ b/backends/ppc_initreg.c | ||
17 | @@ -93,7 +93,7 @@ ppc_set_initial_registers_tid (pid_t tid __attribute__ ((unused)), | ||
18 | return false; | ||
19 | } | ||
20 | const size_t gprs = sizeof (user_regs.r.gpr) / sizeof (*user_regs.r.gpr); | ||
21 | - Dwarf_Word dwarf_regs[gprs]; | ||
22 | + Dwarf_Word dwarf_regs[sizeof (user_regs.r.gpr) / sizeof (*user_regs.r.gpr)]; | ||
23 | for (unsigned gpr = 0; gpr < gprs; gpr++) | ||
24 | dwarf_regs[gpr] = user_regs.r.gpr[gpr]; | ||
25 | if (! setfunc (0, gprs, dwarf_regs, arg)) | ||
26 | -- | ||
27 | 1.9.1 | ||
28 | |||