public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Alessandro Carminati <alessandro.carminati@gmail.com>
To: libc-help@sourceware.org
Subject: Re: Fwd: MIPSEL GLIBC sem_init() not shared
Date: Sat, 13 Mar 2021 07:53:38 +0100	[thread overview]
Message-ID: <CAPp5cGTVm4LuYAMcMhSaBq28Z-9YJss8ifno2s3EUNHMSB9rNA@mail.gmail.com> (raw)
In-Reply-To: <87im5w4av2.fsf@oldenburg.str.redhat.com>

On Fri, Mar 12, 2021 at 5:04 PM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Alessandro Carminati via Libc-help:
>
> > Al the sources I have found seems to agree on the fact that if a
> > symbol is unversioned, like in my case, the symbol the dynamic linker
> > should use is the one that carries the "@@"
>
> I think they talk about the link editor (static linker) chosing the
> symbol version, and not about what happens at run time.

Thank you for your explanation. I want you to know my appreciation for your
contribution.
Back to the topic; about your last statement, I'm quite confused.
For example, if the target of the double @@ feature is the static linker,
why they talk about it in a post where the topic is DSO?
Why this double @@ is mainteined inside the DSOs?
Reflecting on my scenario I see that the dynamic linker finds quite unusual
situation where the symbol is required and there's no dependency on the DSO
containing it, and no indication (.gnu.version_r) about how to handle it.
My assumption was that the double @@ would handle these situation, but it
is reasonable that this situation to have another handling.
For this reason my current understanding is that the dynamic linker would
use default the double @@ indicated function, where the .gnu.version_r is
present but not populated, and use the older symbol where
the .gnu.version_r is missing. This way it would handle correctly the
situation where old executables do not have the section because it didn't
exist yet.
I will check the dynamic linker source code to confute or confirm this
hypothesis.

Thanks
Alessandro

  reply	other threads:[~2021-03-13  6:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12  9:31 Alessandro Carminati
2021-03-12 10:49 ` Florian Weimer
     [not found]   ` <CAPp5cGTfu38orQNtDRXrxenPDKYbJgEmFHjcw8QspURmCkZL0Q@mail.gmail.com>
2021-03-12 11:37     ` Fwd: " Alessandro Carminati
2021-03-12 12:17       ` Florian Weimer
2021-03-12 13:41         ` Alessandro Carminati
2021-03-12 16:04           ` Florian Weimer
2021-03-13  6:53             ` Alessandro Carminati [this message]
2021-03-13  7:05               ` Florian Weimer

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=CAPp5cGTVm4LuYAMcMhSaBq28Z-9YJss8ifno2s3EUNHMSB9rNA@mail.gmail.com \
    --to=alessandro.carminati@gmail.com \
    --cc=libc-help@sourceware.org \
    /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).