[PATCH 3/5] backends: Add initial return value location support for LoongArch

2023-04-06 Thread Youling Tang
LoongArch ELF ABI specification - Return values: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_return_values Signed-off-by: Liwei Ge Signed-off-by: Youling Tang --- backends/ChangeLog | 6 ++ backends/Makefile.am| 2 +- backends/loongarch_ini

[PATCH 5/5] backends: Add core_note callback for LoongArch

2023-04-06 Thread Youling Tang
Signed-off-by: Youling Tang --- backends/ChangeLog| 6 ++ backends/Makefile.am | 2 +- backends/loongarch_corenote.c | 114 ++ backends/loongarch_init.c | 1 + 4 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 back

[PATCH 4/5] backends: Add frame pointer unwinding for LoongArch

2023-04-06 Thread Youling Tang
If we don't find any debug information for a given frame, we usually cannot unwind any further. However, the binary in question might have been compiled with frame pointers, in which case we can look up the well known frame pointer locations in the stack snapshot and use them to bridge the frames w

[PATCH 2/5] backends: Add set_initial_registers_tid callback for LoongArch

2023-04-06 Thread Youling Tang
This patch implements the set_initial_registers_tid hook for LoongArch. Signed-off-by: Liwei Ge Signed-off-by: Youling Tang --- backends/ChangeLog | 6 +++ backends/Makefile.am | 2 +- backends/loongarch_init.c| 1 + backends/loongarch_initreg.c | 91 +++

[PATCH 1/5] backends: Add abi_cfi and register_info callbacks for LoongArch

2023-04-06 Thread Youling Tang
LoongArch Reference Manual - Volume 1: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html LoongArch ELF ABI: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html Signed-off-by: Liwei Ge Signed-off-by: Youling Tang --- backends/ChangeLog|

[PATCH 0/5] Improve LoongArch support

2023-04-06 Thread Youling Tang
Test Environment (New Toolchain): $ cat /etc/os-release NAME="My GNU/Linux System for LoongArch64" VERSION="6.0" ID=CLFS4LA64 PRETTY_NAME="My GNU/Linux System for LoongArch64 6.0" $ gcc -v gcc version 13.0.0 20220919 (experimental) (GCC) Test Results:

☠ Buildbot (Sourceware): elfutils - failed test (failure) (master)

2023-04-06 Thread builder--- via Elfutils-devel
A new failure has been detected on builder elfutils-gentoo-sparc while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#builders/225/builds/53 Build state: failed test (failure) Revision: 6e9718089b05403947d8255423a849d425305925 Worker: gentoo-sparc

Re: [PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ on loongarch

2023-04-06 Thread Mark Wielaard
Hi, On Sat, Apr 01, 2023 at 11:18:53AM +0800, Youling Tang wrote: > Add handling of _GLOBAL_OFFSET_TABLE_. > > Before applying the patch: > $ ./src/elflint --gnu-ld ./src/elflint > section [35] '.symtab': _GLOBAL_OFFSET_TABLE_ symbol value 0x68548 > does not match .got.plt section address 0x68238

Re: [PATCH 2/2] backends: Add new relocation type handling for LoongArch

2023-04-06 Thread Mark Wielaard
On Sat, Apr 01, 2023 at 02:43:44PM +0800, Youling Tang wrote: > Add new relocation type handling. Thanks, looks good. Pushed. Cheers, Mark

Re: [PATCH 1/2] libelf: Sync elf.h from glibc.

2023-04-06 Thread Mark Wielaard
On Sat, Apr 01, 2023 at 02:43:43PM +0800, Youling Tang wrote: > Adds R_LARCH_*. Thanks, pushed.

[Bug libdw/30272] Unwinding multithreaded musl applications fails

2023-04-06 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30272 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #3

Re: Some ideas for process improvements/changes

2023-04-06 Thread Mark Wielaard
Hi Frank, On Thu, Apr 06, 2023 at 01:34:20PM -0400, Frank Ch. Eigler via Elfutils-devel wrote: > > - Get rid of ChangeLog files and trivial ChangeLog entries > > [...] > > Yes please! So sad, on irc people are also enthousiastic about this. O well. :) > > - Use patchwork more > > [...] >

Re: Some ideas for process improvements/changes

2023-04-06 Thread Frank Ch. Eigler via Elfutils-devel
Hi - > - Get rid of ChangeLog files and trivial ChangeLog entries > [...] Yes please! > - Use patchwork more > [...] This doesn't seem like something for community/contributors to do - patchwork seems mostly a maintainer/committer tool. > It would be nice if it was automated a bit more b

Some ideas for process improvements/changes

2023-04-06 Thread Mark Wielaard
Hi hackers, In general it feels like the elfutils community is working well, there are regular releases with bug fixes and new features. Most patches are reviewed fairly quickly (although there are some exceptions where patches have been pending too long). So I don't want to change too much. But h

[PATCH] readelf: Handle NULL shdr in section_name

2023-04-06 Thread Mark Wielaard
In some error cases we want to show the section name but cannot because the section header is corrupt or NULL. Make sure the section_name always returns "???" in that case. * src/readelf.c (section_name): Check for shdr == NULL. Signed-off-by: Mark Wielaard --- src/readelf.c | 2 +- 1 f

[PATCH] backends: Check results for NULL early in dwarf_peeled_die_type

2023-04-06 Thread Mark Wielaard
Calling dwarf_peeled_die_type with a NULL results pointer is an error, check early that result is not NULL so dwarf_formref_die and dwarf_peel_type won't try to set the NULL Dwarf_Die. * backends/libebl_CPU.h (dwarf_peeled_die_type): Move check for results == NULL to start of funct