From: Mark Wielaard <mark@klomp.org>
To: Andreas Schwab <schwab@suse.de>, elfutils-devel@sourceware.org
Subject: Re: [PATCH RFC] backends: Add RISC-V object attribute printing
Date: Thu, 13 Oct 2022 16:53:30 +0200 [thread overview]
Message-ID: <f73e0cd26c260547348e5f9faf90ce4e4f288aa7.camel@klomp.org> (raw)
In-Reply-To: <mvmedxojvmv.fsf@suse.de>
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?
Cheers,
Mark
next prev parent reply other threads:[~2022-10-13 14:53 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 [this message]
2022-11-25 16:29 ` Martin Liška
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=f73e0cd26c260547348e5f9faf90ce4e4f288aa7.camel@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.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).