From: "Martin Liška" <mliska@suse.cz>
To: Mark Wielaard <mark@klomp.org>, Andreas Schwab <schwab@suse.de>,
elfutils-devel@sourceware.org
Subject: Re: [PATCH RFC] backends: Add RISC-V object attribute printing
Date: Fri, 25 Nov 2022 17:29:19 +0100 [thread overview]
Message-ID: <772d9a17-3a8b-df94-24dd-51756ecfb3f9@suse.cz> (raw)
In-Reply-To: <f73e0cd26c260547348e5f9faf90ce4e4f288aa7.camel@klomp.org>
On 10/13/22 16:53, Mark Wielaard wrote:
> Hi Andreas,
>
> 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?
Martin
>
> Cheers,
>
> Mark
next prev parent reply other threads:[~2022-11-25 16:29 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 [this message]
2023-02-22 22:56 ` Mark Wielaard
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=772d9a17-3a8b-df94-24dd-51756ecfb3f9@suse.cz \
--to=mliska@suse.cz \
--cc=elfutils-devel@sourceware.org \
--cc=mark@klomp.org \
--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).