public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: "Martin Liška" <mliska@suse.cz>
Cc: Andreas Schwab <schwab@suse.de>, elfutils-devel@sourceware.org
Subject: Re: [PATCH RFC] backends: Add RISC-V object attribute printing
Date: Wed, 22 Feb 2023 23:56:48 +0100	[thread overview]
Message-ID: <20230222225648.GC1713@gnu.wildebeest.org> (raw)
In-Reply-To: <772d9a17-3a8b-df94-24dd-51756ecfb3f9@suse.cz>

Hi,

On Fri, Nov 25, 2022 at 05:29:19PM +0100, Martin Liška wrote:
> On 10/13/22 16:53, Mark Wielaard wrote:
> > On Wed, 2022-08-10 at 11:27 +0200, Andreas Schwab via Elfutils-devel
> > wrote:
> >> 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.
> > 
> > Yeah, I see this comment in print_attributes:
> > 
> >          /* GNU style tags have either a uleb128 value,
> >             when lowest bit is not set, or a string
> >             when the lowest bit is set.
> >             "compatibility" (32) is special.  It has
> >             both a string and a uleb128 value.  For
> >             non-gnu we assume 6 till 31 only take ints.
> >             XXX see arm backend, do we need a separate
> >             hook?  */
> > 
> > Maybe we need a flag in the backend to tell whether attributes follow
> > the "gnu_vendor" convention? So that could be checked at:
> > 
> >           bool gnu_vendor = (q - name == sizeof "gnu"
> >                              && !memcmp (name, "gnu", sizeof "gnu"));
> >           gnu_vendor |= ebl->has_gnu_attributes;
> > 
> > Or something similar?
> 
> Andreas: Can you please take a look at this?

Has anybody had time to look at this?

Thanks,

Mark

  reply	other threads:[~2023-02-22 22:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-10  9:27 Andreas Schwab
2022-10-13 14:53 ` Mark Wielaard
2022-11-25 16:29   ` Martin Liška
2023-02-22 22:56     ` Mark Wielaard [this message]
2023-02-24  8:55       ` Martin Liška

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=20230222225648.GC1713@gnu.wildebeest.org \
    --to=mark@klomp.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=mliska@suse.cz \
    --cc=schwab@suse.de \
    /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).