public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: Mark Wielaard <mark@klomp.org>
Cc: Andreas Schwab <schwab@suse.de>,
	elfutils-devel@sourceware.org, Martin Jambor <mjambor@suse.cz>
Subject: Re: [PATCH RFC] backends: Add RISC-V object attribute printing
Date: Fri, 24 Feb 2023 09:55:53 +0100	[thread overview]
Message-ID: <b73720d0-ea51-81e0-f4fd-8872eee9c594@suse.cz> (raw)
In-Reply-To: <20230222225648.GC1713@gnu.wildebeest.org>

@Andreas: Can you take a look?

Martin

On 2/22/23 23:56, Mark Wielaard wrote:
> 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-24  8:55 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
2023-02-24  8:55       ` Martin Liška [this message]

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=b73720d0-ea51-81e0-f4fd-8872eee9c594@suse.cz \
    --to=mliska@suse.cz \
    --cc=elfutils-devel@sourceware.org \
    --cc=mark@klomp.org \
    --cc=mjambor@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).