public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@seketeli.org>
To: Mark Wielaard <mark@klomp.org>
Cc: libabigail@sourceware.org,
	 David Abdurachmanov <david.abdurachmanov@gmail.com>
Subject: Re: none
Date: Mon, 08 Jan 2024 16:13:39 +0100	[thread overview]
Message-ID: <87plybvows.fsf@seketeli.org> (raw)
In-Reply-To: <20231229004051.540340-1-mark@klomp.org> (Mark Wielaard's message of "Fri, 29 Dec 2023 01:40:49 +0100")

Hello,

Mark Wielaard <mark@klomp.org> a écrit:

> Hi,
>
> There is now a libabigail riscv ci and try builder on
> builder.sourceware.org. Most things seem to just work as is.

Whoah ...

> Here are two patches to improve the riscv support.

Thanks.

> [PATCH 1/2] Recognize EM_RISCV in e_machine_to_string
>
> Adds support for generating a human readable string for EM_RISCV.
> It includes configure support in case the system elf.h doesn't
> contain the macro. But that is just for really old systems, glibc
> 2.24 added it.
>
> Note that elfutils libdw provides dwelf_elf_e_machine_string which
> does a similar thing.

Oh, I see that elfutils has it since 0.177.  That's "new" :-).  We
should then make libabigail's e_machine_to_string use
dwelf_elf_e_machine_string and require using an elfutils version >= 0.177.  Now
that elfutils supports pkg-config, it should be easy to require an
elfutils version.  What do you think?

>
> [PATCH 2/2] Fix ABG_ASSERT in build_ir_node_from_die for DW_TAG_member
>
> Fixes an assert that for some reason only shows up on riscv 
> in runtesttypesstability against the DWARF for the test file:
> test-types-stability/PR27165-libzmq.so.5.2.3
>
> The issue is that the DIE [2113c8] being checked is in a CU that is 
> C++, but the dwarf reader current translation unit [b] is a GIMPLE 
> (lto) one, marked as C99.

Oh, I see. Good catch.
>
> I think this is because that first compile unit contains a variable
> DIE [35dcf] that has an abstract origin [21492f] with specification
> [2113c8] and type [211bf6] in the later C++ CU.

Right.

> With this make check is all green on riscv.

Many thanks for this.

I am applying this patch first, then EM_RISCV one second.  That way, the
build stays green from the first patch.

Many thanks!

Cheers,

-- 
		Dodji

  parent reply	other threads:[~2024-01-08 15:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-29  0:40 Mark Wielaard
2023-12-29  0:40 ` [PATCH 1/2] Recognize EM_RISCV in e_machine_to_string Mark Wielaard
2023-12-29  0:40 ` [PATCH 2/2] Fix ABG_ASSERT in build_ir_node_from_die for DW_TAG_member Mark Wielaard
2024-01-08 15:13 ` Dodji Seketeli [this message]
2024-01-08 19:14   ` Some libabigail RISC-V support issues Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plybvows.fsf@seketeli.org \
    --to=dodji@seketeli.org \
    --cc=david.abdurachmanov@gmail.com \
    --cc=libabigail@sourceware.org \
    --cc=mark@klomp.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).