elfutils: Update to version 0.195

Message ID 20260519212838.3147035-9-adolf.belka@ipfire.org
State New
Headers
Series elfutils: Update to version 0.195 |

Commit Message

Adolf Belka 19 May 2026, 9:28 p.m. UTC
- Update from version 0.194 to 0.195
- Update of rootfile
- Removal of FTBFS patch as now built into tarball
- Changelog
0.195
CONTRIBUTING: elfutils has adopted a policy on the use of Large Language
               Models (LLMs).  Contributions containing output generated
               by LLMs are not currently being accepted.
debuginfod: Introduce --home-redirect and --home-html switches allowing
             for redirecting to custom URL and/or serving a custom html
             file, if document root is requested.  Related: PR33635.
            New command line option --max-depth that limits scanner depth.
            Metadata queries now support lookup by build-id.
            New function debuginfod_default_progressfn added to
             libdebuginfod.
debuginfod-find: Fixed bug where DEBUGINFOD_PROGRESS environment variable
                  was ignored if debuginfod-find was invoked without -v.
elflint: Recognize .debug_*.dwo sections, .relro_padding sections as well
          as SHT_AARCH64_ATTRIBUTES, SHT_LLVM_LTO and SHT_LLVM_ADDRSIG.
         Accept R_X86_64_DTPOFF64 in ET_REL files.
         Add lints for PT_LOAD, PT_INTERP and PT_PHDR segments.
libdw: Added language constants for Erlang, Elixir and Gleam.
       Fixed bug that caused sections in DWARF package files (.dwp) to be
        missed if section .debug_dwp is present.
libdwfl: Improved handling of Linux kernel object files with sh_addr
          fields set to non-zero.
libdwfl_stacktrace: AArch64 and 32-bit ARM support added.  The
                     libdwfl_stacktrace library interface is experimental
                     and may be subject to API/ABI changes.
libelf: New man pages for gelf.h functions.
        Fixed gelf_getmove and gelf_update_move assertion failures caused
         by incorrect ELFCLASS32/ELFCLASS64 handling.
        elf_update now correctly handles binaries with 65280+ sections
         when section zero headers aren't loaded.
readelf: Improved support for DWARF Package Files (.dwp) sections.
         Improved output format for .gcc_except_table.
stacktrace: This experimental tool is scheduled to be removed in the next
             release and replaced with the upcoming eu-stackprof tool.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/elfutils       |  49 +++-
 lfs/elfutils                           |   7 +-
 src/patches/elfutils-0.194-FTBFS.patch | 301 -------------------------
 3 files changed, 49 insertions(+), 308 deletions(-)
 delete mode 100644 src/patches/elfutils-0.194-FTBFS.patch
  

Patch

diff --git a/config/rootfiles/common/elfutils b/config/rootfiles/common/elfutils
index 1e009cd22..14f00d035 100644
--- a/config/rootfiles/common/elfutils
+++ b/config/rootfiles/common/elfutils
@@ -29,15 +29,15 @@  usr/include/elfutils/libdwfl_stacktrace.h
 #usr/include/gelf.h
 #usr/include/libelf.h
 #usr/include/nlist.h
-usr/lib/libasm-0.194.so
+usr/lib/libasm-0.195.so
 #usr/lib/libasm.a
 #usr/lib/libasm.so
 usr/lib/libasm.so.1
-usr/lib/libdw-0.194.so
+usr/lib/libdw-0.195.so
 #usr/lib/libdw.a
 #usr/lib/libdw.so
 usr/lib/libdw.so.1
-usr/lib/libelf-0.194.so
+usr/lib/libelf-0.195.so
 #usr/lib/libelf.a
 #usr/lib/libelf.so
 usr/lib/libelf.so.1
@@ -130,8 +130,51 @@  usr/lib/libelf.so.1
 #usr/share/man/man3/elf_strptr.3
 #usr/share/man/man3/elf_update.3
 #usr/share/man/man3/elf_version.3
+#usr/share/man/man3/gelf.3
+#usr/share/man/man3/gelf_checksum.3
+#usr/share/man/man3/gelf_fsize.3
+#usr/share/man/man3/gelf_getauxv.3
+#usr/share/man/man3/gelf_getchdr.3
 #usr/share/man/man3/gelf_getclass.3
+#usr/share/man/man3/gelf_getdyn.3
 #usr/share/man/man3/gelf_getehdr.3
+#usr/share/man/man3/gelf_getlib.3
+#usr/share/man/man3/gelf_getmove.3
+#usr/share/man/man3/gelf_getnote.3
+#usr/share/man/man3/gelf_getphdr.3
+#usr/share/man/man3/gelf_getrel.3
+#usr/share/man/man3/gelf_getrela.3
+#usr/share/man/man3/gelf_getshdr.3
+#usr/share/man/man3/gelf_getsym.3
+#usr/share/man/man3/gelf_getsyminfo.3
+#usr/share/man/man3/gelf_getsymshndx.3
+#usr/share/man/man3/gelf_getverdaux.3
+#usr/share/man/man3/gelf_getverdef.3
+#usr/share/man/man3/gelf_getvernaux.3
+#usr/share/man/man3/gelf_getverneed.3
+#usr/share/man/man3/gelf_getversym.3
+#usr/share/man/man3/gelf_newehdr.3
+#usr/share/man/man3/gelf_newphdr.3
+#usr/share/man/man3/gelf_offscn.3
+#usr/share/man/man3/gelf_update_auxv.3
+#usr/share/man/man3/gelf_update_dyn.3
+#usr/share/man/man3/gelf_update_ehdr.3
+#usr/share/man/man3/gelf_update_lib.3
+#usr/share/man/man3/gelf_update_move.3
+#usr/share/man/man3/gelf_update_phdr.3
+#usr/share/man/man3/gelf_update_rel.3
+#usr/share/man/man3/gelf_update_rela.3
+#usr/share/man/man3/gelf_update_shdr.3
+#usr/share/man/man3/gelf_update_sym.3
+#usr/share/man/man3/gelf_update_syminfo.3
+#usr/share/man/man3/gelf_update_symshndx.3
+#usr/share/man/man3/gelf_update_verdaux.3
+#usr/share/man/man3/gelf_update_verdef.3
+#usr/share/man/man3/gelf_update_vernaux.3
+#usr/share/man/man3/gelf_update_verneed.3
+#usr/share/man/man3/gelf_update_versym.3
+#usr/share/man/man3/gelf_xlatetof.3
+#usr/share/man/man3/gelf_xlatetom.3
 #usr/share/man/man3/libelf.3
 #usr/share/man/man7/debuginfod-client-config.7
 #usr/share/man/man8/debuginfod.8
diff --git a/lfs/elfutils b/lfs/elfutils
index c3af32a69..bda9bf829 100644
--- a/lfs/elfutils
+++ b/lfs/elfutils
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2026  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -26,7 +26,7 @@  include Config
 
 SUMMARY    = Higher-level library to access ELF files
 
-VER        = 0.194
+VER        = 0.195
 
 THISAPP    = elfutils-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
@@ -42,7 +42,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = dd1fd1ba83330aa3313bd96614851a59411ea8e1004afda23791296de03960db5e193ee9ded4dd159d80c954efecc2cb5438cce986817d537c72d5ff887faf16
+$(DL_FILE)_BLAKE2 = 7ad84f87ba24a0edd3d1885a232e63f454509f3d229952d2c9b85dd76baa6b150e022bbce70fc3e89b57f5c606ed3862178c693e3638bf22b891c5798e7c624a
 
 install : $(TARGET)
 
@@ -72,7 +72,6 @@  $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/elfutils-0.194-FTBFS.patch
 	cd $(DIR_APP) && ./configure \
 				--prefix=/usr \
 				--disable-debuginfod \
diff --git a/src/patches/elfutils-0.194-FTBFS.patch b/src/patches/elfutils-0.194-FTBFS.patch
deleted file mode 100644
index bcb102f2b..000000000
--- a/src/patches/elfutils-0.194-FTBFS.patch
+++ /dev/null
@@ -1,301 +0,0 @@ 
-From 4a5cf8be906d5991e7527e69e3f2ceaa74811301 Mon Sep 17 00:00:00 2001
-From: Andreas Schwab <schwab@suse.de>
-Date: Mon, 24 Nov 2025 13:46:16 +0100
-Subject: [PATCH] Fix const-correctness issues
-
-These were uncovered by the C23 const-preserving library macros.
----
- debuginfod/debuginfod-client.c |  2 +-
- libcpu/riscv_disasm.c          | 52 +++++++++++++++++-----------------
- libdw/dwarf_getsrclines.c      |  6 ++--
- src/readelf.c                  |  8 +++---
- 4 files changed, 34 insertions(+), 34 deletions(-)
-
-diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
-index c0ff5967..c5bc8a4f 100644
---- a/debuginfod/debuginfod-client.c
-+++ b/debuginfod/debuginfod-client.c
-@@ -3104,7 +3104,7 @@ int debuginfod_add_http_header (debuginfod_client *client, const char* header)
-   /* Sanity check header value is of the form Header: Value.
-      It should contain at least one colon that isn't the first or
-      last character.  */
--  char *colon = strchr (header, ':'); /* first colon */
-+  const char *colon = strchr (header, ':'); /* first colon */
-   if (colon == NULL /* present */
-       || colon == header /* not at beginning - i.e., have a header name */
-       || *(colon + 1) == '\0') /* not at end - i.e., have a value */
-diff --git a/libcpu/riscv_disasm.c b/libcpu/riscv_disasm.c
-index 0dee842a..749d4567 100644
---- a/libcpu/riscv_disasm.c
-+++ b/libcpu/riscv_disasm.c
-@@ -77,7 +77,7 @@ static const char *regnames[32] =
-     "a6", "a7", "s2", "s3", "s4", "s5", "s6", "s7",
-     "s8", "s9", "s10", "s11", "t3", "t4", "t5", "t6"
-   };
--#define REG(nr) ((char *) regnames[nr])
-+#define REG(nr) regnames[nr]
- #define REGP(nr) REG (8 + (nr))
- 
- 
-@@ -88,7 +88,7 @@ static const char *fregnames[32] =
-     "fa6", "fa7", "fs2", "fs3", "fs4", "fs5", "fs6", "fs7",
-     "fs8", "fs9", "fs10", "fs11", "ft8", "ft9", "ft10", "ft11"
-   };
--#define FREG(nr) ((char *) fregnames[nr])
-+#define FREG(nr) fregnames[nr]
- #define FREGP(nr) FREG (8 + (nr))
- 
- 
-@@ -163,12 +163,12 @@ riscv_disasm (Ebl *ebl,
- 	  break;
- 	}
- 
--      char *mne = NULL;
-+      const char *mne = NULL;
-       /* Max length is 24, which is "illegal", so we print it as
-          "0x<48 hex chars>"
-          See: No instruction encodings defined for these sizes yet, below  */
-       char mnebuf[50];
--      char *op[5] = { NULL, NULL, NULL, NULL, NULL };
-+      const char *op[5] = { NULL, NULL, NULL, NULL, NULL };
-       char immbuf[32];
-       size_t len;
-       char *strp = NULL;
-@@ -400,7 +400,7 @@ riscv_disasm (Ebl *ebl,
- 		    {
- 		      "sub", "xor", "or", "and", "subw", "addw", NULL, NULL
- 		    };
--		  mne = (char *) arithmne[((first >> 10) & 0x4) | ((first >> 5) & 0x3)];
-+		  mne = arithmne[((first >> 10) & 0x4) | ((first >> 5) & 0x3)];
- 		}
- 		op[0] = op[1] = REGP ((first >> 7) & 0x7);
- 	      break;
-@@ -572,7 +572,7 @@ riscv_disasm (Ebl *ebl,
- 		{
- 		  NULL, NULL, "flw", "fld", "flq", NULL, NULL, NULL
- 		};
--	      mne = (char *) (idx == 0x00 ? loadmne[func] : floadmne[func]);
-+	      mne = idx == 0x00 ? loadmne[func] : floadmne[func];
- 	      break;
- 	    case 0x03:
- 	      // MISC-MEM
-@@ -595,8 +595,8 @@ riscv_disasm (Ebl *ebl,
- 		  uint32_t succ = (word >> 24) & 0xf;
- 		  if (pred != 0xf || succ != 0xf)
- 		    {
--		      op[0] = (char *) order[succ];
--		      op[1] = (char *) order[pred];
-+		      op[0] = order[succ];
-+		      op[1] = order[pred];
- 		     }
- 		   mne = "fence";
- 		}
-@@ -614,7 +614,7 @@ riscv_disasm (Ebl *ebl,
- 		  "addi", NULL, "slti", "sltiu", "xori", NULL, "ori", "andi"
- 		};
- 	      func = (word >> 12) & 0x7;
--	      mne = (char *) opimmmne[func];
-+	      mne = opimmmne[func];
- 	      if (mne == NULL)
- 		{
- 		  const uint64_t shiftmask = ebl->class == ELFCLASS32 ? 0x1f : 0x3f;
-@@ -697,7 +697,7 @@ riscv_disasm (Ebl *ebl,
- 		{
- 		  NULL, NULL, "fsw", "fsd", "fsq", NULL, NULL, NULL
- 		};
--	      mne = (char *) (idx == 0x08 ? storemne[func] : fstoremne[func]);
-+	      mne = idx == 0x08 ? storemne[func] : fstoremne[func];
- 	      break;
- 	    case 0x0b:
- 	      // AMO
-@@ -778,7 +778,7 @@ riscv_disasm (Ebl *ebl,
- 		    }
- 		  else
- 		    {
--		      mne = (char *) (idx == 0x0c ? arithmne2[func] : arithmne3[func]);
-+		      mne = idx == 0x0c ? arithmne2[func] : arithmne3[func];
- 		      op[1] = REG (rs1);
- 		      op[2] = REG (rs2);
- 		    }
-@@ -811,7 +811,7 @@ riscv_disasm (Ebl *ebl,
- 		  op[2] = FREG (rs2);
- 		  op[3] = FREG (rs3);
- 		  if (rm != 0x7)
--		    op[4] = (char *) rndmode[rm];
-+		    op[4] = rndmode[rm];
- 		}
- 	      break;
- 	    case 0x14:
-@@ -839,7 +839,7 @@ riscv_disasm (Ebl *ebl,
- 		      op[1] = FREG (rs1);
- 		      op[2] = FREG (rs2);
- 		      if (rm != 0x7)
--			op[3] = (char *) rndmode[rm];
-+			op[3] = rndmode[rm];
- 		    }
- 		  else if (func == 0x1c && width != 2 && rs2 == 0 && rm <= 1)
- 		    {
-@@ -950,7 +950,7 @@ riscv_disasm (Ebl *ebl,
- 			}
- 		      mne = mnebuf;
- 		      if (rm != 0x7 && (func == 0x18 || width == 0 || rs2 >= 2))
--			op[2] = (char *) rndmode[rm];
-+			op[2] = rndmode[rm];
- 		    }
- 		  else if (func == 0x0b && rs2 == 0)
- 		    {
-@@ -961,7 +961,7 @@ riscv_disasm (Ebl *ebl,
- 		      *cp = '\0';
- 		      mne = mnebuf;
- 		      if (rm != 0x7)
--			op[2] = (char *) rndmode[rm];
-+			op[2] = rndmode[rm];
- 		    }
- 		  else if (func == 0x05 && rm < 2)
- 		    {
-@@ -1007,7 +1007,7 @@ riscv_disasm (Ebl *ebl,
- 		  "beq", "bne", NULL, NULL, "blt", "bge", "bltu", "bgeu"
- 		};
- 	      func = (word >> 12) & 0x7;
--	      mne = (char *) branchmne[func];
-+	      mne = branchmne[func];
- 	      if (rs1 == 0 && func == 5)
- 		{
- 		  op[0] = op[1];
-@@ -1035,7 +1035,7 @@ riscv_disasm (Ebl *ebl,
- 	      else if (func == 5 || func == 7)
- 		{
- 		  // binutils use these opcodes and the reverse parameter order
--		  char *tmp = op[0];
-+		  const char *tmp = op[0];
- 		  op[0] = op[1];
- 		  op[1] = tmp;
- 		  mne = func == 5 ? "ble" : "bleu";
-@@ -1103,7 +1103,7 @@ riscv_disasm (Ebl *ebl,
- 			{
- 			  NULL, "frflags", "frrm", "frsr",
- 			};
--		      mne = (char *) unprivrw[csr - 0x000];
-+		      mne = unprivrw[csr - 0x000];
- 		    }
- 		  else if (csr >= 0xc00 && csr <= 0xc03)
- 		    {
-@@ -1111,7 +1111,7 @@ riscv_disasm (Ebl *ebl,
- 			{
- 			  "rdcycle", "rdtime", "rdinstret"
- 			};
--		      mne = (char *) unprivrolow[csr - 0xc00];
-+		      mne = unprivrolow[csr - 0xc00];
- 		    }
- 		  op[0] = REG ((word >> 7) & 0x1f);
- 		}
-@@ -1128,7 +1128,7 @@ riscv_disasm (Ebl *ebl,
- 			{
- 			  NULL, "fsflagsi", "fsrmi", NULL
- 			};
--		      mne = (char *) ((word & 0x4000) == 0 ? unprivrs : unprivrsi)[csr - 0x000];
-+		      mne = ((word & 0x4000) == 0 ? unprivrs : unprivrsi)[csr - 0x000];
- 
- 		      if ((word & 0x4000) == 0)
- 			op[0] = REG ((word >> 15) & 0x1f);
-@@ -1259,12 +1259,12 @@ riscv_disasm (Ebl *ebl,
- 		  if (rd != 0)
- 		    op[last++] = REG (rd);
- 		  struct known_csrs key = { csr, NULL };
--		  struct known_csrs *found = bsearch (&key, known,
--						      sizeof (known) / sizeof (known[0]),
--						      sizeof (known[0]),
--						      compare_csr);
-+		  const struct known_csrs *found = bsearch (&key, known,
-+							    sizeof (known) / sizeof (known[0]),
-+							    sizeof (known[0]),
-+							    compare_csr);
- 		  if (found)
--		    op[last] = (char *) found->name;
-+		    op[last] = found->name;
- 		  else
- 		    {
- 		      snprintf (addrbuf, sizeof (addrbuf), "0x%" PRIx32, csr);
-@@ -1289,7 +1289,7 @@ riscv_disasm (Ebl *ebl,
- 		  else if (instr == 3 && rd == 0)
- 		    mne = "csrc";
- 		  else
--		    mne = (char *) mnecsr[instr];
-+		    mne = mnecsr[instr];
- 		}
- 	      break;
- 	    default:
-diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c
-index be10cdee..76db2929 100644
---- a/libdw/dwarf_getsrclines.c
-+++ b/libdw/dwarf_getsrclines.c
-@@ -364,7 +364,7 @@ read_srcfiles (Dwarf *dbg,
-       const unsigned char *dirp = linep;
-       while (dirp < lineendp && *dirp != 0)
- 	{
--	  uint8_t *endp = memchr (dirp, '\0', lineendp - dirp);
-+	  const uint8_t *endp = memchr (dirp, '\0', lineendp - dirp);
- 	  if (endp == NULL)
- 	    goto invalid_data;
- 	  ++ndirs;
-@@ -440,7 +440,7 @@ read_srcfiles (Dwarf *dbg,
-       for (unsigned int n = 1; n < ndirlist; n++)
- 	{
- 	  dirarray[n].dir = (char *) linep;
--	  uint8_t *endp = memchr (linep, '\0', lineendp - linep);
-+	  const uint8_t *endp = memchr (linep, '\0', lineendp - linep);
- 	  assert (endp != NULL); // Checked above when calculating ndirlist.
- 	  dirarray[n].len = endp - linep;
- 	  linep = endp + 1;
-@@ -927,7 +927,7 @@ read_srclines (Dwarf *dbg,
- 	    case DW_LNE_define_file:
- 	      {
- 		char *fname = (char *) linep;
--		uint8_t *endp = memchr (linep, '\0', lineendp - linep);
-+		const uint8_t *endp = memchr (linep, '\0', lineendp - linep);
- 		if (endp == NULL)
- 		  goto invalid_data;
- 		size_t fnamelen = endp - linep;
-diff --git a/src/readelf.c b/src/readelf.c
-index a2d17358..fbdf8c71 100644
---- a/src/readelf.c
-+++ b/src/readelf.c
-@@ -8269,7 +8269,7 @@ attr_callback (Dwarf_Attribute *attrp, void *arg)
- 		    valuestr = dwarf_filesrc (files, num, NULL, NULL);
- 		    if (valuestr != NULL)
- 		      {
--			char *filename = strrchr (valuestr, '/');
-+			const char *filename = strrchr (valuestr, '/');
- 			if (filename != NULL)
- 			  valuestr = filename + 1;
- 		      }
-@@ -9033,7 +9033,7 @@ print_form_data (Dwarf *dbg, int form, const unsigned char *readp,
- 		 Dwarf_Off str_offsets_base, FILE *out)
- {
-   Dwarf_Word val;
--  unsigned char *endp;
-+  const unsigned char *endp;
-   Elf_Data *data;
-   char *str;
-   switch (form)
-@@ -9530,7 +9530,7 @@ print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
- 	{
- 	  while (linep < lineendp && *linep != 0)
- 	    {
--	      unsigned char *endp = memchr (linep, '\0', lineendp - linep);
-+	      const unsigned char *endp = memchr (linep, '\0', lineendp - linep);
- 	      if (unlikely (endp == NULL))
- 		goto invalid_unit;
- 
-@@ -9764,7 +9764,7 @@ print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
- 		case DW_LNE_define_file:
- 		  {
- 		    char *fname = (char *) linep;
--		    unsigned char *endp = memchr (linep, '\0',
-+		    const unsigned char *endp = memchr (linep, '\0',
- 						  lineendp - linep);
- 		    if (unlikely (endp == NULL))
- 		      goto invalid_unit;
--- 
-2.47.3
-