One shot mode for debuginfod server

2022-08-09 Thread Ryan Goldberg via Elfutils-devel
Hi, Here is a patch for a new one-shot mode for the debuginfod server. In this mode the first scanning pass of the server will also output the found executables' paths and buildids to the given file descriptor. This can (and soon will be used in systemtap) as an easy way to scan archive files and q

Re: debuginfod Credential Helper RFC

2022-08-09 Thread Daniel Thornburgh via Elfutils-devel
On Mon, Aug 8, 2022 at 1:41 PM Frank Ch. Eigler wrote: > So-so ... if the file contents are modified, but the environment > variable that points to the file is fixed, then one may get into parse > race conditions as different debuginfod client objects in the process > may be active at the same ti

cannot skip augment string handling

2022-08-09 Thread Ulrich Drepper via Elfutils-devel
He dwarf_next_cfi function has some clever code which skips over the processing of the augmentation string content if the first character is 'z' (for sized augmentation). This would be OK if it wouldn't be for the fact that the augment processing loop produces additional information, namely, it fi

☝ Buildbot (GNU Toolchain): elfutils - worker not available (master)

2022-08-09 Thread builder--- via Elfutils-devel
A retry build has been detected on builder elfutils-debian-amd64 while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#builders/52/builds/59 Build state: worker not available Revision: (unknown) Worker: bb2-2 Build Reason: (unknown) Blamelist: Andre

Re: [PATCH] elflint: Allow zero p_memsz for PT_RISCV_ATTRIBUTES

2022-08-09 Thread Mark Wielaard
Hi Andreas, On Tue, Aug 09, 2022 at 10:29:53AM +0200, Andreas Schwab wrote: > The RISCV_ATTRIBUTES segment is not meant to be loaded. That makes sense. Pushed. Thanks, Mark

Re: [PATCH] backends: Handle new RISC-V specific definitions

2022-08-09 Thread Mark Wielaard
On Tue, Aug 09, 2022 at 09:54:28AM +0200, Andreas Schwab wrote: > Handle PT_RISCV_ATTRIBUTES, SHT_RISCV_ATTRIBUTES, DT_RISCV_VARIANT_CC. Thanks, looks good. Added a ChangeLog entry and pushed. Cheers, Mark

Re: Making DT_HASH optional?

2022-08-09 Thread Mark Wielaard
Hi, CCing the elfutils-devel list where this issue (of missing DT_SYMTAB_COUNT or DT_SYMTABSZ) does come up occasionally. Which are needed if you only have the dynamic segment, and not the section headers, to enumerate all symbols. On Mon, Aug 08, 2022 at 05:29:19PM -0700, Cary Coutant wrote: > >

[PATCH] elflint: Allow zero p_memsz for PT_RISCV_ATTRIBUTES

2022-08-09 Thread Andreas Schwab via Elfutils-devel
The RISCV_ATTRIBUTES segment is not meant to be loaded. Signed-off-by: Andreas Schwab --- src/ChangeLog | 5 + src/elflint.c | 5 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 42ce6640..fbcef29e 100644 --- a/src/ChangeLog +++ b/src/Ch

[PATCH] backends: Handle new RISC-V specific definitions

2022-08-09 Thread Andreas Schwab via Elfutils-devel
Handle PT_RISCV_ATTRIBUTES, SHT_RISCV_ATTRIBUTES, DT_RISCV_VARIANT_CC. Signed-off-by: Andreas Schwab --- backends/riscv_init.c | 4 backends/riscv_symbol.c | 45 + 2 files changed, 49 insertions(+) diff --git a/backends/riscv_init.c b/backends/ris