[Bug tools/29498] Is it expected that eu-strip strips .note.GNU-stack

2022-10-28 Thread jpalus at fastmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29498 --- Comment #3 from Jan Palus --- If I understand it correctly in binutils primary criteria for removing section is whether it is marked with SEC_DEBUGGING flag: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=binutils/objcopy.c;h=d20

[COMMITTED] libelf: Sync elf.h from glibc

2022-10-28 Thread Mark Wielaard
Adds ELFCOMPRESS_ZSTD, NT_S390_PV_CPU_DATA and NT_LOONGARCH_*. Signed-off-by: Mark Wielaard --- libelf/ChangeLog | 4 libelf/elf.h | 18 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/libelf/ChangeLog b/libelf/ChangeLog index aefb31b3..8107c71e 10064

Re: [PATCH][RFC] readelf: partial support of ZSTD compression

2022-10-28 Thread Mark Wielaard
Hi Martin, On Mon, Oct 24, 2022 at 08:16:09PM +0200, Martin Liška wrote: > Anyway, I'm sending V2 that works fine --with-zstd and --without-zstd as > expected. > > Ready for master? The decompression part looks good. Few small nitpicks below. Although I like to also have compression working.

[PATCH] readelf: add binutils-style --syms option

2022-10-28 Thread Arsen Arsenović via Elfutils-devel
This helps people with a lot of built up muscle memory :) Signed-off-by: Arsen Arsenović --- Hi there! I often use the "medium length" form of --symbols when using readelf, and I've been trying to switch to eu-readelf lately (for various reasons); this alias comes in handy for this reason. I al

[PATCH] Add support for ARCv2

2022-10-28 Thread Shahab Vahedi via Elfutils-devel
This adds support for Synopsys ARCv2 processors. ARC target related macros has been added to libelf/elf.h. However, there a few changes on existing ARC macros to correct them and be in sync with binutils. There are no regressions in tests for an x86_64 build. =

Re: [PATCH 07/25] move platform depended include into system.h of libasm, libcpu, libdw, libdwfl and libdwelf

2022-10-28 Thread Mark Wielaard
On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel wrote: > Signed-off-by: Yonggang Luo > --- > lib/color.c| 1 - > libasm/asm_abort.c | 1 - > libasm/asm_addint8.c | 2 -- > libasm/asm_begin.c |

Re: [PATCH 09/25] include libgen.h in system.h

2022-10-28 Thread Mark Wielaard
On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel wrote: > basename function are accessed multiple place, but used without > include libgen.h This is wrong. We use the GNU basename (from string.h with _GNU_SOURCE), not the POSIX one (from libgen.h). Cheers, Mark

Re: [PATCH 08/25] Use configure to detect HAVE_DECL_MMAP and use it for system doesn't provide sys/mman.h

2022-10-28 Thread Mark Wielaard
Hi, On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel wrote: > Signed-off-by: Yonggang Luo > --- > configure.ac | 1 + > lib/crc32_file.c | 4 ++-- > lib/system.h | 2 ++ > libelf/elf32_updatefile.c | 3 ++- > libelf/elf_begin.c| 5

Re: [PATCH 06/25] move platform depended include into system.h of libebl

2022-10-28 Thread Mark Wielaard
On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel wrote: > Because all source in libebl #include , so #include > in > libeblP.h is enough, there is multiple memory-access.h file, so use > relative path to > include it properly, I am not a fan of the relative path trick, especiall

Re: [PATCH] debuginfod-client: Add DEBUGINFOD_HEADERS_FILE.

2022-10-28 Thread Mark Wielaard
Hi Daniel, On Tue, 2022-10-18 at 14:21 -0700, Daniel Thornburgh via Elfutils-devel wrote: > This DEBUGINFOD_HEADERS_FILE environment variable names a file to supply > HTTP headers to outgoing requests. Notably, this allows for > Authorization headers to be added from a file under OS access control