openwrt/package/libs/elfutils/patches
Ryan Keane 9591c1631d
elfutils: Backport some patches to fix errors
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>
(cherry picked from commit afffcd09e5)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2024-11-28 18:47:36 +00:00
..
003-libintl-compatibility.patch elfutils: Update to 0.192 2024-11-28 18:47:33 +00:00
005-build_only_libs.patch elfutils: Update to 0.192 2024-11-28 18:47:33 +00:00
006-Fix-build-on-aarch64-musl.patch elfutils: Update to 0.192 2024-11-28 18:47:33 +00:00
007-add-libeu-symbols-to-libelf.patch elfutils: Backport some patches to fix errors 2024-11-28 18:47:36 +00:00
008-fix-autoconf-ENABLE_IMA_VERIFICATION.patch elfutils: Backport some patches to fix errors 2024-11-28 18:47:36 +00:00
009-fix-null-dereference-with-lto.patch elfutils: Backport some patches to fix errors 2024-11-28 18:47:36 +00:00
100-musl-compat.patch elfutils: update to 1.88 2022-11-05 14:07:46 +00:00
101-no-fts.patch elfutils: update to 1.88 2022-11-05 14:07:46 +00:00
102-fix-potential-deref-of-null-error.patch elfutils: Update to 0.192 2024-11-28 18:47:33 +00:00