public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Andreas Schwab <schwab@suse.de>,
	 Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: _rtld_global, _rtld_global_ro (and local aliases) as an optimization
Date: Wed, 07 Jun 2023 14:56:27 +0200	[thread overview]
Message-ID: <871qinl9c4.fsf@oldenburg3.str.redhat.com> (raw)
In-Reply-To: <d3ce412f-b716-b449-f11a-d7b528d45c7f@linaro.org> (Adhemerval Zanella Netto's message of "Wed, 7 Jun 2023 09:40:02 -0300")

* Adhemerval Zanella Netto:

>> So the consensus is that we should use this only for cross-DSO
>> information sharing, and not for optimizing address computation of
>> global data variables?
>
> Which cases are uses solely for optimizing address computation? For, instance
> the _dl_pagesize along with _dl_auxv. On Linux, we don't really _dl_pagesize,
> but it is simpler and faster than iterate over _dl_auxv.

I believe GL (dl_rtld_map) is only used within ld.so.

Thanks,
Florian


      reply	other threads:[~2023-06-07 12:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06 12:14 Florian Weimer
2023-06-06 19:30 ` Adhemerval Zanella Netto
2023-06-07  8:57   ` Florian Weimer
2023-06-07  9:14     ` Andreas Schwab
2023-06-07  9:37       ` Florian Weimer
2023-06-07 12:08         ` Adhemerval Zanella Netto
2023-06-07 12:21           ` Florian Weimer
2023-06-07 12:40             ` Adhemerval Zanella Netto
2023-06-07 12:56               ` Florian Weimer [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=871qinl9c4.fsf@oldenburg3.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@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).