public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Palmer Dabbelt <palmer@dabbelt.com>
To: H.J. Lu <hjl.tools@gmail.com>
Cc: vincent.chen@sifive.com, libc-alpha@sourceware.org,
	Andrew Waterman <andrew@sifive.com>,
	kai.wang@sifive.com, greentime.hu@sifive.com,
	kito.cheng@sifive.com
Subject: Re: [PATCH v2 2/2] riscv: Resolve symbols directly for symbols with STO_RISCV_VARIANT_CC.
Date: Wed, 19 Jan 2022 18:43:33 -0800 (PST)	[thread overview]
Message-ID: <mhng-f0119406-ebaf-4f18-a218-5c42b28f09a8@palmer-ri-x1c9> (raw)
In-Reply-To: <CAMe9rOquPkmvXUOeBBXea03tqiDbieFc5V9VB4ykPy-KhzOGVA@mail.gmail.com>

On Wed, 19 Jan 2022 18:38:35 PST (-0800), H.J. Lu wrote:
> On Wed, Jan 19, 2022 at 6:22 PM Palmer Dabbelt <palmer@dabbelt.com> wrote:

[snip]

>> Given the complexity around this psABI spec deviation and how close we
>> are to release I'd prefer to wait and see if we can come up with a
>> better solution, though -- for example, I'd been kicking around some
>> ideas related to ELF object attributes saying "this follows the
>> psABI-1.0" vs "this follows the legacy GNU psABI extensions".  That way
>> we could at least tag binaries that explicitly rely on this new behavior
>> as such, which would give us a shot at eventually getting rid of them.
>
> If you want to go this route, I suggest you use GNU property for this.
> ld.so supports GNU property.

Makes sense.

I'd been thinking of essentially just defining one bit for each of these 
incompatibilites, with an absence of them meaning the legacy behavior 
and then a true/false meaning that users have explicitly opted into to 
the spec'd or legacy behavior.  I hadn't gotten as far as actually 
figuring out where to put those bits -- I got hung up on the pc-relative 
vs position-independent one, and that's clearly for after this round of 
releases so I kind of just put it on the backburner.

Given that pretty much all of these are going to need to drive runtime 
behavior, though, it sounds like a GNU property is a reasonable way to 
go.  There's going to be a lot of edge cases here, though, so happy to 
hear if anyone has ideas ;)

Thanks!

  reply	other threads:[~2022-01-20  2:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18  4:31 [PATCH v2 0/2] RISC-V: Add vector ISA support Vincent Chen
2022-01-18  4:31 ` [PATCH v2 1/2] RISC-V: remove riscv-specific sigcontext.h Vincent Chen
2022-01-20  2:36   ` Palmer Dabbelt
2022-01-20  2:47     ` Kito Cheng
2022-01-21  1:29       ` Vincent Chen
2022-01-24  9:42         ` Vincent Chen
2022-02-24 20:56         ` Palmer Dabbelt
2022-02-25  0:32           ` Vincent Chen
2022-01-18  4:31 ` [PATCH v2 2/2] riscv: Resolve symbols directly for symbols with STO_RISCV_VARIANT_CC Vincent Chen
2022-01-20  2:21   ` Palmer Dabbelt
2022-01-20  2:38     ` H.J. Lu
2022-01-20  2:43       ` Palmer Dabbelt [this message]
2022-01-21  1:43     ` Vincent Chen
2022-02-24 20:56       ` Palmer Dabbelt
2022-12-09  4:11   ` Vineet Gupta
2022-12-09  4:22     ` Kito Cheng
2022-12-09  4:26       ` Vineet Gupta
2022-12-09  4:35         ` Kito Cheng

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=mhng-f0119406-ebaf-4f18-a218-5c42b28f09a8@palmer-ri-x1c9 \
    --to=palmer@dabbelt.com \
    --cc=andrew@sifive.com \
    --cc=greentime.hu@sifive.com \
    --cc=hjl.tools@gmail.com \
    --cc=kai.wang@sifive.com \
    --cc=kito.cheng@sifive.com \
    --cc=libc-alpha@sourceware.org \
    --cc=vincent.chen@sifive.com \
    /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).