[PATCH 6/6] doc: Add elf_compress.3 and elf_compress_gnu.3

2025-06-22 Thread Aaron Merey
Signed-off-by: Aaron Merey --- doc/Makefile.am| 2 + doc/elf_compress.3 | 183 + doc/elf_compress_gnu.3 | 1 + 3 files changed, 186 insertions(+) create mode 100644 doc/elf_compress.3 create mode 100644 doc/elf_compress_gnu.3 diff --git a

[PATCH 4/6 v2] doc: Add elf_getarsym.3

2025-06-22 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2: Clarify that narsyms can be NULL and that the end of the archive symbol table contains a special NULL entry. doc/Makefile.am| 1 + doc/elf_getarsym.3 | 99 ++ 2 files changed, 100 insertions(+) create mode 1006

[PATCH 5/6] doc: Add elf_cntl.3

2025-06-22 Thread Aaron Merey
Signed-off-by: Aaron Merey --- doc/Makefile.am | 1 + doc/elf_cntl.3 | 66 + 2 files changed, 67 insertions(+) create mode 100644 doc/elf_cntl.3 diff --git a/doc/Makefile.am b/doc/Makefile.am index d0ec20da..de0106bb 100644 --- a/doc/Makefile.am

[PATCH] libdwP.h: Remove abbrev_lock

2025-06-22 Thread Aaron Merey
Improve __libdw_dieabbrev performance by removing abbrev_lock. This lock protects the Dwarf_Die abbrev member due to lazy loading. Instead, eagerly load abbrev during Dwarf_Die initialization so that the member is readonly and requires no locking. Signed-off-by: Aaron Merey --- libdw/dwarf_dec

[PATCH] libdwl: Add validate_strdata to limit Elf_Data d_size to valid strings.

2025-06-22 Thread Mark Wielaard
dwfl_module_getsym returns the name of a symbol as found in the corresponding (symbol) string section. Make sure all names are correctly zero terminated by making sure the last valid index in a section/segment Elf_Data contains a zero character. * libdwfl/dwfl_module_getdwarf.c (validate_s

[PATCH 1/6 v2] doc: Add elf_next.3

2025-06-22 Thread Aaron Merey
Signed-off-by: Aaron Merey --- v2: Clarify that elf_next is called with an archive member in order to update the descriptor for the parent archive. Added a code example. doc/Makefile.am | 1 + doc/elf_next.3 | 120 2 files changed, 121 insert

[Bug libelf/33099] heap overflow in print_dwarf_addr

2025-06-22 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33099 Mark Wielaard changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #4 from Mark Wie