[Bug general/28608] New: elflint elfstrmerge fails with ld.gold

2021-11-19 Thread mliska at suse dot cz via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=28608 Bug ID: 28608 Summary: elflint elfstrmerge fails with ld.gold Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Compone

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

2021-11-19 Thread Mark Wielaard
Hi Dmitry, On Fri, Nov 19, 2021 at 01:20:26AM +0300, Dmitry V. Levin wrote: > 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

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

2021-11-19 Thread Florian Weimer via Elfutils-devel
* Dmitry V. Levin: > Let's make clear what's going on here. First of all, dwfl-proc-attach.c > does not use dlopen so it doesn't pull it in and doesn't need -ldl. > In regular builds, dwfl-proc-attach.o is linked with ../libdw/libdw.so > which in turn uses dlopen and is already linked with -ldl.

[PATCH] debuginfod/debuginfod-client.c: correct string format on 32bit arches with 64bit time_t

2021-11-19 Thread Alexander Kanavin via Elfutils-devel
From: Alexander Kanavin Use intmax_t to print time_t time_t is platform dependent and some of architectures e.g. x32, riscv32, arc use 64bit time_t even while they are 32bit architectures, therefore directly using integer printf formats will not work portably, use intmax_t to typecast time_t int

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

2021-11-19 Thread Dmitry V. Levin
On Fri, Nov 19, 2021 at 05:58:19PM +0100, Florian Weimer wrote: > * Dmitry V. Levin: > > > Let's make clear what's going on here. First of all, dwfl-proc-attach.c > > does not use dlopen so it doesn't pull it in and doesn't need -ldl. > > In regular builds, dwfl-proc-attach.o is linked with ../li

Re: eu-strip supported cpu architecture?

2021-11-19 Thread Mark Wielaard
Hi, On Thu, Nov 18, 2021 at 09:08:05AM +0800, abstrakta via Elfutils-devel wrote: > I find that rpmbuild use eu-strip to get debuginfo of binaries when > generating debuginfo package.Even when cross compiling,eu-strip > seems to strip out the correct debuginfo.Can eu-strip installed on > x86_64 p

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

2021-11-19 Thread Mark Wielaard
Hi, On Fri, Nov 19, 2021 at 01:04:39AM +0300, Dmitry V. Levin wrote: > 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.

Re: [PATCH] debuginfod/debuginfod-client.c: correct string format on 32bit arches with 64bit time_t

2021-11-19 Thread Érico Nogueira via Elfutils-devel
Hi! On Fri Nov 19, 2021 at 3:15 PM -03, Alexander Kanavin via Elfutils-devel wrote: > From: Alexander Kanavin > > Use intmax_t to print time_t > > time_t is platform dependent and some of architectures e.g. > x32, riscv32, arc use 64bit time_t even while they are 32bit > architectures, therefore