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

2023-02-22 Thread Mark Wielaard
Hi, On Tue, 2022-12-20 at 22:35 +0100, Mark Wielaard wrote: > On Wed, Jun 01, 2022 at 10:55:27AM -0500, Guillermo E. Martinez via > Elfutils-devel wrote: > > This is the second version patch to avoid remove the CTF section in > > stripped files. Changes from v1: > > > > - Add description in te

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

2023-02-22 Thread Jose E. Marchesi via Elfutils-devel
> Hi, > > On Tue, 2022-12-20 at 22:35 +0100, Mark Wielaard wrote: >> On Wed, Jun 01, 2022 at 10:55:27AM -0500, Guillermo E. Martinez via >> Elfutils-devel wrote: >> > This is the second version patch to avoid remove the CTF section in >> > stripped files. Changes from v1: >> > >> > - Add desc

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

2023-02-22 Thread Guillermo E. Martinez via Elfutils-devel
On Wed, Feb 22, 2023 at 05:42:45PM +0100, Mark Wielaard wrote: > Hi, > Hi Mark, > On Tue, 2022-12-20 at 22:35 +0100, Mark Wielaard wrote: > > On Wed, Jun 01, 2022 at 10:55:27AM -0500, Guillermo E. Martinez via > > Elfutils-devel wrote: > > > This is the second version patch to avoid remove the

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2023-02-22 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434 --- Comment #17 from Mark Wielaard --- So the code here changed a little with this patch: commit b7c7d8776ed46e2237d18fb15c6b72e83cfa259b Author: Mark Wielaard Date: Sun Jan 22 00:31:57 2023 +0100 libdw: Search for abstract origin in

[PATCH] libdw: Fix dwarf_getscopes memory leak on error

2023-02-22 Thread Mark Wielaard
When there is an error in dwarf_getscopes after the initial scopes have been allocated, e.g. when looking for the inlined scopes, then the scopes would leak. Fix this by explicitly free the scopes on error. https://sourceware.org/bugzilla/show_bug.cgi?id=29434 Signed-off-by: Mark Wielaard --- l

[Bug libdw/29434] Memory leak in `dwarf_getscopes`

2023-02-22 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29434 --- Comment #18 from Mark Wielaard --- I could replicate a leak when there was an error looking up the inlined scopes, so I submitted the patch to fix that: https://inbox.sourceware.org/elfutils-devel/2023023901.1089881-1-m...@klomp.org/T/

Re: [PATCH RFC] backends: Add RISC-V object attribute printing

2023-02-22 Thread Mark Wielaard
Hi, On Fri, Nov 25, 2022 at 05:29:19PM +0100, Martin Liška wrote: > On 10/13/22 16:53, Mark Wielaard wrote: > > On Wed, 2022-08-10 at 11:27 +0200, Andreas Schwab via Elfutils-devel > > wrote: > >> This does not work yet. The RISC-V attribute tags use the same > >> convention as the GNU attributes

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

2023-02-22 Thread Mark Wielaard
Hi, On Wed, Feb 22, 2023 at 11:12:07AM -0600, Guillermo E. Martinez wrote: > The conclusion was basically not use section flags to identify which > section should be stripped out or not, so, it requires other mechanisms > for explicitly specifying which sections should be removed, as eu-strip > do