[PATCH] backends/riscv: Remove unused relocations

2024-07-31 Thread Andreas Schwab
(TPREL_S, REL) RELOC_TYPE (RELAX, REL) RELOC_TYPE (SUB6, REL) RELOC_TYPE (SET6, REL) -- 2.46.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something compl

[PATCH] Support nullglob in profile.sh.in

2024-05-13 Thread Andreas Schwab
Don't block on stdin when /etc/debuginfod/*.certpath expands to nothing. Signed-off-by: Andreas Schwab --- config/profile.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/profile.sh.in b/config/profile.sh.in index 911c7a43..5e86f433 100644 --- a/c

[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

[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 RFC] backends: Add RISC-V object attribute printing

2022-08-10 Thread Andreas Schwab via Elfutils-devel
5b0daffe..a642fe9e 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,9 @@ +2022-08-10 Andreas Schwab + + * Makefile.am (riscv_SRCS): Add riscv_attrs.c. + * riscv_init.c (riscv_init): Hook in riscv_check_object_attribute. + * riscv_attrs.c: New file. + 2022-08-09

[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] 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

[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

[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

[PATCH] run-large-elf-file.sh: skip if free memory information is not available

2019-11-14 Thread Andreas Schwab
--- tests/ChangeLog | 5 + tests/run-large-elf-file.sh | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 97b8dedb..f37f6cd6 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2019-11-14 Andreas Schwab

[PATCH] dwelf_elf_e_machine_string: Clear errno before calling strtol

2019-11-14 Thread Andreas Schwab
Avoid spurious failure if errno is modified by any other library call in the test. Signed-off-by: Andreas Schwab --- tests/ChangeLog| 5 + tests/dwelf_elf_e_machine_string.c | 1 + 2 files changed, 6 insertions(+) diff --git a/tests/ChangeLog b/tests/ChangeLog index

Re: elfutils 0.175 released

2018-11-20 Thread Andreas Schwab
The riscv port is still work in progress. Patches welcome to implement the missing bits. The backtrace-dwarf test doesn't fail for me, btw. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for

[PATCH] Handle ADD/SUB relocations

2018-10-02 Thread Andreas Schwab
This adds support for ADD and SUB relocations as seen on RISC-V. Signed-off-by: Andreas Schwab --- backends/ChangeLog | 20 backends/aarch64_symbol.c | 3 ++- backends/alpha_symbol.c | 3 ++- backends/arm_symbol.c | 3 ++- backends/bpf_symbol.c

Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

2018-07-24 Thread Andreas Schwab
lue; \ break; TYPES; #undef DO_TYPE -- 2.18.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] backends: add abi_cfi and set_initial_registers_tid callbacks for M68K

2018-07-21 Thread Andreas Schwab
This fixes all testsuite failures. Signed-off-by: Andreas Schwab --- backends/ChangeLog | 8 +++ backends/Makefile.am | 2 +- backends/{m68k_init.c => m68k_cfi.c} | 48 backends/m68k_init.c | 4 ++ backends/m68k_initre

[PATCH] tests: Add core and strip tests for RISC-V

2018-07-19 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- tests/ChangeLog | 12 + tests/Makefile.am | 6 ++- tests/run-allregs.sh| 71 tests/run-readelf-mixed-corenote.sh | 70 +++ tests/run-strip-test12

[PATCH] Fix typo in riscv_register_info

2018-07-19 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- backends/ChangeLog| 4 backends/riscv_regs.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backends/ChangeLog b/backends/ChangeLog index bf31072e3a..79370b6f85 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7

[PATCH] backends: add core_note callback for RISC-V

2018-07-17 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- backends/ChangeLog| 6 backends/Makefile.am | 2 +- backends/riscv_corenote.c | 60 +++ backends/riscv_init.c | 1 + 4 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 backends

Re: [PATCH 2/2] run-strip-reloc.sh: Skip debug file check for riscv

2018-07-17 Thread Andreas Schwab
On Jul 17 2018, Mark Wielaard wrote: > If you could regenerate the file with -g so that it does contain .debug > sections that would help us fix the testcase. It would probably help to update the build instructions to force debug builds by adding CONFIG_DEBUG_INFO=y. Andreas. -- A

Re: [PATCH 2/2] run-strip-reloc.sh: Skip debug file check for riscv

2018-07-17 Thread Andreas Schwab
On Jul 17 2018, Ulf Hermann wrote: > My first patch removes all temporary files at the beginning of runtest() > which exposes this. Thanks, I see the failure now. Here is the updated module: hello_riscv64.ko.bz2 Description: BZip2 compressed data Andreas. -- Andreas Schwab, SUS

Re: [PATCH 2/2] run-strip-reloc.sh: Skip debug file check for riscv

2018-07-17 Thread Andreas Schwab
lo_riscv64.ko doesn't contain any debug sections. > So strip doesn't produce a separate debug file. > > Andreas, could you provide an updated hello_riscv64.ko that is compiled > with -g and does contain debuginfo? What is the issue? The test worksforme. Andreas. -- Andrea

Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

2018-07-11 Thread Andreas Schwab
t need to handle SETX). > They are not used much though and only againstĀ .debug_frame. So > if you get RISC_ADD/SUB going that probably handles most uses. Both size --reloc-debug-sections and readelf -wframe need to handle all relocs, including SET6/ADD6/SUB6. Andreas. -- Andreas Schwab,

[PATCH] backends: add set_initial_registers_tid callback for RISC-V

2018-07-11 Thread Andreas Schwab
This fixes the backtrace-dwarf and deleted tests, and lets backtrace-native run a bit further. Signed-off-by: Andreas Schwab --- backends/ChangeLog | 6 backends/Makefile.am | 3 +- backends/riscv_init.c| 1 + backends/riscv_initreg.c | 77

Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

2018-06-20 Thread Andreas Schwab
update_section_size' highpc <= >> lowpc > > That is odd. For which testfile is this? Is it for a native (self test) > file? Yes, the object files for these sources. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

2018-06-18 Thread Andreas Schwab
trace-core-riscv.sh testcase (the existing ones should > explain how to generate the (static) executable and core file for the > test, but if it is unclear please ask. I will work on these. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970

[PATCH] backends: add abi_cfi and register_info callbacks for RISC-V

2018-06-13 Thread Andreas Schwab
From <https://github.com/riscv/riscv-isa-manual/raw/master/release/riscv-spec-v2.2.pdf> and GCC source. Signed-off-by: Andreas Schwab --- backends/Makefile.am | 2 +- backends/riscv_cfi.c | 75 ++ backends/riscv_init.c | 4 + backends/riscv_regs.c

Re: [PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ and __global_pointer$ on riscv

2018-05-15 Thread Andreas Schwab
binutils sources. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

[PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ and __global_pointer$ on riscv

2018-05-15 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- backends/ChangeLog | 5 + backends/riscv_init.c | 1 + backends/riscv_symbol.c | 32 3 files changed, 38 insertions(+) diff --git a/backends/ChangeLog b/backends/ChangeLog index 63bb7e444e..0dde0ff3f5 100644 --- a

[PATCH] Add support for RISC-V

2018-04-19 Thread Andreas Schwab
ailed. ./test-subr.sh: line 84: 26040 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-core.26027: no main rmdir: failed to remove 'test-26016': Directory not empty FA

[PATCH] libelf: Sync elf.h from glibc

2018-04-19 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- libelf/ChangeLog | 4 +++ libelf/elf.h | 71 2 files changed, 63 insertions(+), 12 deletions(-) diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 62e8911654..ea2b9df884 100644 --- a/libelf/ChangeLog

[PATCH] Support EM_PPC machine flags

2017-06-15 Thread Andreas Schwab
This fixes the elflint self test when the compiler is configured for PIE default. Signed-off-by: Andreas Schwab --- backends/ChangeLog| 5 + backends/ppc_init.c | 1 + backends/ppc_symbol.c | 10 ++ 3 files changed, 16 insertions(+) diff --git a/backends/ChangeLog b