[Bug general/30812] New: ../libelf/gelf.h:32:10: fatal error: libelf.h: No such file or directory

2023-08-30 Thread schwab--- via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30812 Bug ID: 30812 Summary: ../libelf/gelf.h:32:10: fatal error: libelf.h: No such file or directory Product: elfutils Version: unspecified Status: NEW Keywords:

[Bug tools/29073] New: program header entry 2: unknown program header entry type 0x70000003

2022-04-19 Thread schwab--- via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29073 Bug ID: 29073 Summary: program header entry 2: unknown program header entry type 0x7003 Product: elfutils Version: unspecified Status: NEW Severity: norm

[Bug tools/29073] program header entry 2: unknown program header entry type 0x70000003

2022-08-11 Thread schwab--- via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29073 Andreas Schwab changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[PATCH] libelf: Sync elf.h from glibc

2023-06-26 Thread Andreas Schwab via Elfutils-devel
Adds new RISC-V relocations. * elf.h: Update from glibc. Signed-off-by: Andreas Schwab --- libelf/elf.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libelf/elf.h b/libelf/elf.h index 4bc0e429..89fc8021 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@

[PATCH] backends: Update list of RISC-V relocations

2023-06-26 Thread Andreas Schwab via Elfutils-devel
* backends/riscv_reloc.def: Add IRELATIVE, PLT32, SET_ULEB128, SUB_ULEB128. Signed-off-by: Andreas Schwab --- backends/riscv_reloc.def | 4 1 file changed, 4 insertions(+) diff --git a/backends/riscv_reloc.def b/backends/riscv_reloc.def index 2bd3513e..f52f6489 100644 --- a

[PATCH] libelf: Sync elf.h from glibc

2022-08-08 Thread Andreas Schwab via Elfutils-devel
Adds PT_RISCV_ATTRIBUTES, SHT_RISCV_ATTRIBUTES, PT_AARCH64_MEMTAG_MTE, RELR definitions, LoongArch relocations. dwelf_elf_e_machine_string was updated to handle EM_LOONGARCH, and ebl_dynamic_tag_name was updated to handle the new RELR dynamic tags. Signed-off-by: Andreas Schwab --- libdwelf/Cha

[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

[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] readelf: Handle SHT_RISCV_ATTRIBUTES like SHT_GNU_ATTRIBUTES

2022-08-10 Thread Andreas Schwab via Elfutils-devel
Signed-off-by: Andreas Schwab --- src/ChangeLog | 4 src/readelf.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index fbcef29e..88db4051 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2022-08-10 Andreas Schwab + +

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

2022-08-10 Thread Andreas Schwab via Elfutils-devel
This does not work yet. The RISC-V attribute tags use the same convention as the GNU attributes: odd numbered tags take a string value, even numbered ones an integer value, but print_attributes assumes the ARM numbering scheme by default for non-GNU attributes. --- backends/ChangeLog | 6 ++