Re: [PATCH] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Mark Wielaard
On Sun, 2020-12-06 at 15:28 +0300, Dmitry V. Levin wrote: > Hi Mark, > > On Sun, Dec 06, 2020 at 01:06:42PM +0100, Mark Wielaard wrote: > > Hi Dmitry, > > > > On Mon, 2020-11-30 at 09:00 +, Dmitry V. Levin wrote: > > > Add DEBUGINFOD_SONAME macro to API for use by those of libdebuginfod > > >

Re: [PATCH] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Dmitry V. Levin
On Tue, Dec 08, 2020 at 01:02:41PM +0100, Mark Wielaard wrote: > On Sun, 2020-12-06 at 15:28 +0300, Dmitry V. Levin wrote: > > On Sun, Dec 06, 2020 at 01:06:42PM +0100, Mark Wielaard wrote: [...] > > > Don't we need both versioned and versionless names (at least dwfl tries > > > the versioned one f

Re: Will eu-addr2line support debuginfod?

2020-12-08 Thread Mark Wielaard
Hi, On Tue, 2020-12-01 at 10:23 -0500, Frank Ch. Eigler via Elfutils-devel wrote: > Is it planned to have eu-addr2line supporting debuginfod? I try to > > pass '[build-id]@address' (in the same format that eu-stack > > outputting) > > without success [...] > > For a broader discussion of the same

Re: eu-strip --reloc-debug-sections-only on linux .debug objects

2020-12-08 Thread Mark Wielaard
Hi Vitaly, On Mon, 2020-12-07 at 18:59 +0300, Vitaly Chikunov wrote: > Is it safe to run `eu-strip --reloc-debug-sections-only` on Linux > kernel > .debug files, such as vmlinux.debug and .ko.debug modules? Yes, it was designed to be used on linux .ko.debug modules. vmlinux.debug itself is a spec

Re: [PATCH] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Dmitry V. Levin
On Tue, Dec 08, 2020 at 01:02:41PM +0100, Mark Wielaard wrote: > On Sun, 2020-12-06 at 15:28 +0300, Dmitry V. Levin wrote: > > On Sun, Dec 06, 2020 at 01:06:42PM +0100, Mark Wielaard wrote: [...] > > > Finally, I am actually using the Makefile VERSION variable in a > > > downstream (DTS) to make su

Re: [PATCH] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Mark Wielaard
Hi Dmitry, On Tue, Dec 08, 2020 at 06:15:40PM +0300, Dmitry V. Levin wrote: > On Tue, Dec 08, 2020 at 01:02:41PM +0100, Mark Wielaard wrote: > > On Sun, 2020-12-06 at 15:28 +0300, Dmitry V. Levin wrote: > > > On Sun, Dec 06, 2020 at 01:06:42PM +0100, Mark Wielaard wrote: > [...] > > > > Finally, I

Re: [PATCH] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Dmitry V. Levin
Hi Mark, On Wed, Dec 09, 2020 at 12:07:04AM +0100, Mark Wielaard wrote: > Hi Dmitry, > > On Tue, Dec 08, 2020 at 06:15:40PM +0300, Dmitry V. Levin wrote: > > On Tue, Dec 08, 2020 at 01:02:41PM +0100, Mark Wielaard wrote: > > > On Sun, 2020-12-06 at 15:28 +0300, Dmitry V. Levin wrote: > > > > On S

Re: eu-strip --reloc-debug-sections-only on linux .debug objects

2020-12-08 Thread Vitaly Chikunov
Mark, On Tue, Dec 08, 2020 at 03:21:12PM +0100, Mark Wielaard wrote: > Hi Vitaly, > > On Mon, 2020-12-07 at 18:59 +0300, Vitaly Chikunov wrote: > > Is it safe to run `eu-strip --reloc-debug-sections-only` on Linux > > kernel > > .debug files, such as vmlinux.debug and .ko.debug modules? > > Yes,

[PATCH v3 1/3] debuginfod: export DEBUGINFOD_SONAME macro in debuginfod.h

2020-12-08 Thread Dmitry V. Levin
Add DEBUGINFOD_SONAME macro to API for use by those of libdebuginfod clients that would like to dlopen the library in the same way as __libdwfl_debuginfod_init does. Signed-off-by: Dmitry V. Levin --- ChangeLog| 5 + configure.ac

[PATCH v3 2/3] debuginfod: create libdebuginfod.so.1 before libdebuginfod.so

2020-12-08 Thread Dmitry V. Levin
This would allow to switch from "libdebuginfod-" VERSION ".so" to DEBUGINFOD_SONAME in __libdwfl_debuginfod_init, and to remove the fall back to dlopen of "libdebuginfod.so" which is no longer needed. Signed-off-by: Dmitry V. Levin --- debuginfod/ChangeLog | 5 + debuginfod/Makefile.am |

[PATCH v3 3/3] libdwfl: switch to DEBUGINFOD_SONAME, remove libdebuginfod.so fallback

2020-12-08 Thread Dmitry V. Levin
Since DEBUGINFOD_SONAME is as good as ("libdebuginfod-" VERSION ".so") for dlopen, switch to use the name which is a part of the API. Given that DEBUGINFOD_SONAME is always available now, remove the no longer needed fall back to dlopen of "libdebuginfod.so". Signed-off-by: Dmitry V. Levin --- l

Re: [PATCH v3 2/3] debuginfod: create libdebuginfod.so.1 before libdebuginfod.so

2020-12-08 Thread Dmitry V. Levin
On Wed, Dec 09, 2020 at 03:13:12AM +0300, Dmitry V. Levin wrote: > This would allow to switch from "libdebuginfod-" VERSION ".so" > to DEBUGINFOD_SONAME in __libdwfl_debuginfod_init, and to remove the > fall back to dlopen of "libdebuginfod.so" which is no longer needed. Correction: s/which is no