[PATCH] libebl: recognize FDO Packaging Metadata ELF note

2021-11-18 Thread luca.boccassi--- via Elfutils-devel
From: Luca Boccassi As defined on: https://systemd.io/COREDUMP_PACKAGE_METADATA/ this note will be used starting from Fedora 36. Allow readelf --notes to pretty print it: Note section [ 3] '.note.package' of 76 bytes at offset 0x2e8: Owner Data size Type FDO 57 F

Re: [PATCH] tests: Add -ldl to dwfl_proc_attach_LDFLAGS

2021-11-18 Thread Dmitry V. Levin
On Thu, Nov 18, 2021 at 10:23:41PM +0100, Mark Wielaard wrote: > dwfl-proc-attach uses (overrides) dlopen (so it does nothing). This > seems to cause a versioned dlopen symbol to be pulled in when building > with LTO. Resulting in a link failure (when dlopen isn't integrated > into libc): > > /us

Re: [PATCH] dwfl: fix potential overflow when reporting on kernel modules

2021-11-18 Thread Dmitry V. Levin
On Thu, Nov 18, 2021 at 07:44:50PM +, Matthias Maennich via Elfutils-devel wrote: > dwfl_linux_kernel_report_modules_ has an outstanding ancient bug when > reading kernel module information from a modules list file. The target > buffer for the module name was sized too small to hold potential

[PATCH] tests: Add -ldl to dwfl_proc_attach_LDFLAGS

2021-11-18 Thread Mark Wielaard
dwfl-proc-attach uses (overrides) dlopen (so it does nothing). This seems to cause a versioned dlopen symbol to be pulled in when building with LTO. Resulting in a link failure (when dlopen isn't integrated into libc): /usr/bin/ld: dwfl-proc-attach.o (symbol from plugin): undefined reference to s

[PATCH] dwfl: fix potential overflow when reporting on kernel modules

2021-11-18 Thread Matthias Maennich via Elfutils-devel
dwfl_linux_kernel_report_modules_ has an outstanding ancient bug when reading kernel module information from a modules list file. The target buffer for the module name was sized too small to hold potential values. Fix that by increasing the value to account for the null termination. In practice, t