From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: libc-alpha@sourceware.org
Subject: Re: [RFC 2/2] Fold compat_symbol_unique functionality into compat_symbol
Date: Fri, 19 Mar 2021 20:13:14 +0100 [thread overview]
Message-ID: <87h7l7j6t1.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <bfd9c16a-9d11-9ffc-7cbb-947efb95c94c@linaro.org> (Adhemerval Zanella's message of "Fri, 19 Mar 2021 15:59:00 -0300")
* Adhemerval Zanella:
>> In locale/lc-ctype.c, it seems prudent to switch to
>> compat_symbol_reference. It produces .symver directives directly, as
>> before. This side-steps the question of copy relocations, as
>> mentioned in the comment.
>
> Maybe move this change on a subsequent patch?
It's actually necessary to avoid build failures on some m68k variants,
which duplicate the inline asm (it's in a function, so the compiler can
do that), resulting in build failures due to .equiv instead of .set. (I
switched to .equiv because some assemblers use .set for something
unrelated to symbols.)
I can make the change before this patch, though.
>> diff --git a/nptl/libpthread-compat.c b/nptl/libpthread-compat.c
>> index 820dcd6a8f..da537af76e 100644
>> --- a/nptl/libpthread-compat.c
>> +++ b/nptl/libpthread-compat.c
>> @@ -20,10 +20,10 @@
>> #include <shlib-compat.h>
>>
>> #ifdef SHARED
>> -static void
>> +void
>> attribute_compat_text_section
>> __attribute_used__
>> -__libpthread_version_placeholder (void)
>> +__libpthread_version_placeholder_1 (void)
>> {
>> }
>> #endif
>
> I don't think there is the need to change the symbol name, on my
> test the compat_symbol can origin and alias can be the same name.
It's necessary because the symbol version is no longer attached to the
symbol, so it's version-less and gets exported with the default
baseline, which could be something like GLIBC_2.17. I can mention this
in the commit message.
Thanks,
Florian
next prev parent reply other threads:[~2021-03-19 19:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 20:06 [RFC 0/2] Transparent multi-version symbol support Florian Weimer
2021-03-18 20:07 ` [RFC 1/2] Change how the symbol_version_reference macro is defined Florian Weimer
2021-03-19 18:47 ` Adhemerval Zanella
2021-03-18 20:07 ` [RFC 2/2] Fold compat_symbol_unique functionality into compat_symbol Florian Weimer
2021-03-18 21:37 ` Joseph Myers
2021-03-19 18:59 ` Adhemerval Zanella
2021-03-19 19:13 ` Florian Weimer [this message]
2021-03-19 19:34 ` Adhemerval Zanella
2021-03-19 20:10 ` Adhemerval Zanella
2021-03-19 20:17 ` Florian Weimer
2021-03-19 20:26 ` Adhemerval Zanella
2021-03-19 20:29 ` Florian Weimer
2021-03-19 20:33 ` Adhemerval Zanella
2021-03-19 20:33 ` Adhemerval Zanella
2021-03-19 19:02 ` [RFC 0/2] Transparent multi-version symbol support Adhemerval Zanella
2021-03-19 19:14 ` 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=87h7l7j6t1.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@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).