diff options
author | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-03-13 15:43:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-15 01:53:04 +0000 |
commit | d350bb84896530455a2cd6f10000ba6db6a10e22 (patch) | |
tree | fa820242048165f3bb5a566511e083624848cf16 /meta/recipes-devtools/binutils/binutils-2.23.1.inc | |
parent | 5b2aaa3c1ce0aadb2f89ad1ecc791410ea66fe10 (diff) | |
download | poky-d350bb84896530455a2cd6f10000ba6db6a10e22.tar.gz |
binutils: fix ineffectual zero of cache and array bounds issue
binutils build fails on Fedora18+:
1. binutils-2.23.1/bfd/elf32-xtensa.c:6078:36: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memset (sec_cache, 0, sizeof (sec_cache));
^
2. binutils-2.23.1/bfd/elf32-xtensa.c:6120:32: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memset (sec_cache, 0, sizeof (sec_cache));
^
3. binutils-2.23.1/opcodes/arc-dis.c:430:13: error: argument to 'sizeof' in '__builtin_strncat' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
sizeof (state->commentBuffer));
^
4. binutils-2.23.1/opcodes/rl78-dis.c:230:13: error: array subscript is above array bounds [-Werror=array-bounds]
if (oper->use_es && indirect_type (oper->type))
^
(From OE-Core rev: 5445e12e5a32cc5c51ce8a29f2800692ed831115)
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.1.inc')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.23.1.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.1.inc b/meta/recipes-devtools/binutils/binutils-2.23.1.inc index 15811d7830..4523407660 100644 --- a/meta/recipes-devtools/binutils/binutils-2.23.1.inc +++ b/meta/recipes-devtools/binutils/binutils-2.23.1.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | PR = "r2" | 1 | PR = "r3" |
2 | 2 | ||
3 | LIC_FILES_CHKSUM="\ | 3 | LIC_FILES_CHKSUM="\ |
4 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ | 4 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ |
@@ -28,6 +28,7 @@ SRC_URI = "\ | |||
28 | file://binutils-armv5e.patch \ | 28 | file://binutils-armv5e.patch \ |
29 | file://mips64-default-ld-emulation.patch \ | 29 | file://mips64-default-ld-emulation.patch \ |
30 | ${BACKPORT} \ | 30 | ${BACKPORT} \ |
31 | file://binutils-fix-over-array-bounds-issue.patch \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | BACKPORT = "\ | 34 | BACKPORT = "\ |
@@ -44,6 +45,8 @@ BACKPORT = "\ | |||
44 | file://backport/0026-ld-testsuite.patch \ | 45 | file://backport/0026-ld-testsuite.patch \ |
45 | file://backport/0001-doc-binutils.texi-elfedit-Fix-use-of-itemx-in-table.patch \ | 46 | file://backport/0001-doc-binutils.texi-elfedit-Fix-use-of-itemx-in-table.patch \ |
46 | file://backport/0001-ld.texinfo-Replace-with-when-it-is-part-of-the-text.patch \ | 47 | file://backport/0001-ld.texinfo-Replace-with-when-it-is-part-of-the-text.patch \ |
48 | file://backport/binutils-fix-ineffectual-zero-of-cache.patch \ | ||
49 | file://backport/binutils-replace-strncat-with-strcat.patch \ | ||
47 | " | 50 | " |
48 | SRC_URI[md5sum] = "33adb18c3048d057ac58d07a3f1adb38" | 51 | SRC_URI[md5sum] = "33adb18c3048d057ac58d07a3f1adb38" |
49 | SRC_URI[sha256sum] = "2ab2e5b03e086d12c6295f831adad46b3e1410a3a234933a2e8fac66cb2e7a19" | 52 | SRC_URI[sha256sum] = "2ab2e5b03e086d12c6295f831adad46b3e1410a3a234933a2e8fac66cb2e7a19" |