[PATCH v2 5/5] backends: Add register_info, return_value_location, core_note function on mips

2023-11-01 Thread Ying Huang
From: Ying Huang --- backends/Makefile.am | 3 +- backends/mips_corenote.c | 85 + backends/mips_init.c | 3 + backends/mips_regs.c | 135 +++ backends/mips_retval.c | 196 +++ 5 files changed, 421 ins

[PATCH v2 2/5] readelf: Adapt src/readelf -h/-S/-r/-w/-l/-d/-a on mips

2023-11-01 Thread Ying Huang
From: Ying Huang -h: support show Flags name -S: support show mips related section type -r: support show type of Relocation section -w: can work and can show correct "strp" contents -l: support show mips related program header entry type -d: can show mips related Dynamic type name -a: support sho

[PATCH v2 3/5] elflint: adapt src/elflint --gnu src/nm on mips

2023-11-01 Thread Ying Huang
From: Ying Huang The errors were: $ src/elflint --gnu src/nm section [ 2] '.MIPS.options' contains unknown flag(s) 0x800 section [ 7] '.dynsym': symbol 165 (_DYNAMIC_LINKING): non-local section symbol section [24] '.got' contains invalid processor-specific flag(s) 0x1000 section [25] '.sd

[PATCH v2 1/5] strip: Adapt src/strip -o -f on mips

2023-11-01 Thread Ying Huang
From: Ying Huang In mips64 little-endian, r_info consists of four byte fields(contains three reloc types) and a 32-bit symbol index. In order to adapt GELF_R_SYM and GELF_R_TYPE, need convert raw data to get correct symbol index and type. libelf/elf_getdata.c: Some eu-utils use read-mmap metho

[PATCH v2 4/5] stack: Fix stack unwind failure on mips

2023-11-01 Thread Ying Huang
From: Ying Huang Add abi_cfi, set_initial_registers_tid, unwind on mips. --- backends/Makefile.am| 3 +- backends/mips_cfi.c | 68 + backends/mips_init.c| 4 ++ backends/mips_initreg.c | 61 ++ backends/mips_unwind.c | 84

[PATCH v2 0/5] Add support for MIPS

2023-11-01 Thread Ying Huang
This is a series of modifications about MIPS. Support src/readelf, strip, elflint, objdump related tools. Pass all previous test cases that failed due to MIPS non-support. The following are the test results on mips64el. # TOTAL: 271 # PASS: 263 # SKIP: 8 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR:

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

2023-11-01 Thread Aaron Merey
This fedora-s390x buildbot failure is probably spurious. The testsuite passed on the s390x trybot. I also ran the testsuite on a different F38 s390x machine and again it passed. Aaron On Wed, Nov 1, 2023 at 9:36 PM wrote: > > A new failure has been detected on builder elfutils-fedora-s390x whi

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

2023-11-01 Thread builder
A new failure has been detected on builder elfutils-fedora-s390x while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#builders/43/builds/240 Build state: failed test (failure) Revision: a34c5faad861efdd26d1c52b4f8d9d4077e03131 Worker: fedora-s390x

[Bug libdw/30980] offline.c:53: dwfl_offline_section_address: Assertion `mod->e_type == ET_REL' failed.

2023-11-01 Thread amerey at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30980 Aaron Merey changed: What|Removed |Added CC||amerey at redhat dot com St

[COMMITTED][Bug libdw/30980] dwfl_offline_section_address: replace asserts with early return

2023-11-01 Thread Aaron Merey
dwfl_offline_section_address asserts that the current module is ET_REL. A possibly corrupt .gnu_debuglink can cause an abort by calling dwfl_offline_section_address on an ET_DYN module. Prevent this abort and similar ones by replacing dwfl_offline_section_address initial asserts with an early ret

[COMMITTED][PATCH] debuginfod-client.c: Don't print empty line in header_callback

2023-11-01 Thread Aaron Merey
libcurl passes an empty line to header_callback indicating the end of the response's HTTP headers. Currently this empty line is printed to the debuginfod_client's verbose_fd with a "header" prefix: $ echo $DEBUGINFOD_URLS https://debuginfod.fedoraproject.org/ $ debuginfod-find -vv deb

Re: [PATCH 08/14] libdw: Parse DWARF package file index sections

2023-11-01 Thread Mark Wielaard
Hi Omar, On Wed, Sep 27, 2023 at 11:20:57AM -0700, Omar Sandoval wrote: > The .debug_cu_index and .debug_tu_index sections in DWARF package files > are basically hash tables mapping a unit's 8 byte signature to an offset > and size in each section used by that unit [1]. Add support for parsing >

Re: [PATCH 07/14] libdw: Recognize .debug_[ct]u_index sections in dwarf_elf_begin

2023-11-01 Thread Omar Sandoval
On Wed, Nov 01, 2023 at 03:03:57PM +0100, Mark Wielaard wrote: > Hi Omar, > > On Wed, 2023-09-27 at 11:20 -0700, Omar Sandoval wrote: > > From: Omar Sandoval > > > > DWARF package (.dwp) files have a .debug_cu_index section and, > > optionally, a .debug_tu_index section. Add them to the list of

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

2023-11-01 Thread Mark Wielaard
Hi, On Wed, 2023-11-01 at 15:08 +, buil...@sourceware.org wrote: > 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/115 > > Build state: failed te

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

2023-11-01 Thread builder
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/115 Build state: failed test (failure) Revision: c112cf0f1975e19a6111f594c0e5c4d2210c0f9a Worker: gentoo-sparc

Re: [PATCH] PR28204, debuginfod IMA

2023-11-01 Thread Mark Wielaard
Hi Frank, On Tue, 2023-10-31 at 11:46 -0400, Frank Ch. Eigler wrote: > > My point is really that posting with git format-patch or send-email > > makes it possible for someone to simply use git am, b4 or git pw to try > > out a patch. If the patch doesn't apply then that will be the first > > revie

Re: [PATCH 07/14] libdw: Recognize .debug_[ct]u_index sections in dwarf_elf_begin

2023-11-01 Thread Mark Wielaard
Hi Omar, On Wed, 2023-09-27 at 11:20 -0700, Omar Sandoval wrote: > From: Omar Sandoval > > DWARF package (.dwp) files have a .debug_cu_index section and, > optionally, a .debug_tu_index section. Add them to the list of DWARF > sections. > > Unfortunately, it's not that simple: the other debug

Re: Building Elfutils with Mingw32

2023-11-01 Thread Mark Wielaard
Hi, On Mon, 2023-09-18 at 13:18 +, McAllister, Colin via Elfutils-devel wrote: > > There is a large number of developers who build software for ELF-based > > embedded systems on windows and test/debug/profile/deploy it over some > > network or USB connection. Those people want to have elfutils

Re: Building Elfutils with Mingw32

2023-11-01 Thread Mark Wielaard
On Sat, 2023-09-16 at 09:33 +0200, Ulf Hermann via Elfutils-devel wrote: > > I haven't considered shipping cygwin with perfparser. Is that actually > > possible? It looks like it needs some installation procedure I would > > have to burden the user with. > > I guess shipping cygwin with perfpars