Re: [PATCH v3] strip: keep .ctf section in stripped file

2023-03-03 Thread Mark Wielaard
Hi Guillermo, On Thu, 2023-03-02 at 20:40 -0600, Guillermo E. Martinez wrote: > On Tue, Feb 28, 2023 at 03:27:13PM +0100, Mark Wielaard wrote: > > There are some exceptions to the general rule in eu-strip of dropping > > not referenced, non-allocated, SHT_PROGBIT sections. SHT_NOTE sections > > ar

Re: [PATCH v3] strip: keep .ctf section in stripped file

2023-03-03 Thread Nick Clifton via Elfutils-devel
Hi Mark, I am mainly wondering why binutils strip already seems to keep ".ctf" sections (even without -g). Right. But I am wondering how that mechanism works with binutils strip. Apparently we do something different in eu-strip which makes it necessary to add a --keep-ctf option based on the

[COMMITTED] readelf: Fix use-after-free ebl pointer issue

2023-03-03 Thread Mark Wielaard
With -flto gcc 13 sees that we use the ebl pointer after closing and freeing it. In function ‘process_elf_file’, inlined from ‘process_dwflmod’ at readelf.c:818:3: readelf.c:1070:6: error: pointer ‘ebl_18’ used after ‘free’ [-Werror=use-after-free] 1070 | if (pure_ebl != ebl) |

[COMMITTED] libelf: Document and make ELFCOMPRESS_ZSTD usable with old system elf.h

2023-03-03 Thread Mark Wielaard
Make sure that even if the system elf.h doesn't have ELF_COMPRESS_ZSTD defined it can still be used as constant. Also update libelf.h documentation and add new feature to NEWS. Signed-off-by: Mark Wielaard --- ChangeLog| 4 NEWS | 8 +++- libelf/ChangeLog | 5

[COMMITTED] Prepare for 0.189

2023-03-03 Thread Mark Wielaard
Set version to 0.189 Update NEWS and elfutils.spec.in Set copyright year in configure.ac and printversion. Regenerate po/*.po files. Signed-off-by: Mark Wielaard --- NEWS|5 + config/elfutils.spec.in | 13 + configure.ac|4 +- lib/printversion.c |

[COMMITTED] Fix static build when zstd is enabled for libelf

2023-03-03 Thread Mark Wielaard
When doing a static build (as with --enable-gcov) the build fails because the executables aren't linked with -lzstd. Also the run-debuginfod-query-retry.sh test relies on libdebuginfod.so.1 which isn't there. Fix by adding $(zstd_LIBS) to the static libelf lines and using the debuginfod-find execu

elfutils 0.189 released

2023-03-03 Thread Mark Wielaard
ELFUTILS 0.189 "Don't deflate!" - http://elfutils.org/ A new release of elfutils is available at: ftp://sourceware.org/pub/elfutils/0.188/ or https://sourceware.org/elfutils/ftp/0.188/ Visit us on the Libera.Chat irc channel #elfutils * NEWS * configure: eu-nm, eu-addr2line and eu-stack can pro