diff options
author | Ryan Keane <the.ra2.ifv@gmail.com> | 2024-11-07 22:36:23 -0800 |
---|---|---|
committer | Robert Marko <robimarko@gmail.com> | 2024-11-16 19:57:58 +0100 |
commit | afffcd09e5f15be53f327a80ee87d391312eb805 (patch) | |
tree | f2f2ada199ed7a8db4119b1f4f12543fea711acf /tools/mtd-utils/patches/100-gcc4_fix.patch | |
parent | 63caa2b1685ef5d2b4259784085f64cb9e5574a8 (diff) | |
download | openwrt-afffcd09e5f15be53f327a80ee87d391312eb805.tar.gz openwrt-afffcd09e5f15be53f327a80ee87d391312eb805.tar.bz2 openwrt-afffcd09e5f15be53f327a80ee87d391312eb805.zip |
On aarch64 musl gcc 14.x compiler, trying compiling elfutils 0.192 with
lto option enabled will cause null-dereference error.
Example error message:
...
elf_compress.c: In function 'elf_compress':
elf_compress.c:675:26: error: potential null pointer dereference [-Werror=null-dereference]
675 | shdr->sh_flags |= SHF_COMPRESSED;
| ^
elf_compress_gnu.c: In function 'elf_compress_gnu':
elf_compress_gnu.c:127:25: error: potential null pointer dereference [-Werror=null-dereference]
127 | shdr->sh_size = new_size;
| ^ ^
...
This is a false postive warning but will abort compilation if gcc has
`-Werror` flag. This commit add a patch for this, see the bugzilla
report below.
This commit backports a series of patches to fix some errors.
Add patch:
- 007-add-libeu-symbols-to-libelf.patch
- 008-fix-autoconf-ENABLE_IMA_VERIFICATION.patch
- 009-fix-null-dereference-with-lto.patch
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=32311
Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16886
Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'tools/mtd-utils/patches/100-gcc4_fix.patch')
0 files changed, 0 insertions, 0 deletions