Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)
- To: Lukasz Majewski <lukma@denx.de>
- Cc: Arnd Bergmann <arnd@arndb.de>, Florian Weimer <fweimer@redhat.com>, Helmut Grohne <helmutg@debian.org>, GNU C Library <libc-alpha@sourceware.org>, Vineet Gupta <Vineet.Gupta1@synopsys.com>, Palmer Dabbelt <palmerdabbelt@google.com>, Zong Li <zongbox@gmail.com>, debian-arm@lists.debian.org, Alistair Francis <alistair.francis@wdc.com>, Adhemerval Zanella <adhemerval.zanella@linaro.org>, "Maciej W. Rozycki" <macro@wdc.com>, Alistair Francis <alistair23@gmail.com>, arcml <linux-snps-arc@lists.infradead.org>, Joseph Myers <joseph@codesourcery.com>
- Subject: Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)
- From: Andreas Schwab <schwab@suse.de>
- Date: Mon, 24 Feb 2020 11:42:23 +0100
- Message-id: <[🔎] mvmd0a4xo4w.fsf@suse.de>
- In-reply-to: <[🔎] 20200224113658.275ea702@jawa> (Lukasz Majewski's message of "Mon, 24 Feb 2020 11:36:58 +0100")
- References: <cover.1578824547.git.alistair.francis@wdc.com> <4e95f95966d8d7c6a8339160dc62d81c1f6a1bfb.1578824547.git.alistair.francis@wdc.com> <00574bfb-981a-3a1c-cbdf-b2fee4eddc32@gmail.com> <CAKmqyKMyf2psPp+-EHoidvbPbSXv0=dP26GjVQnT5BUriLc1gA@mail.gmail.com> <alpine.DEB.2.21.2002120123230.3988@digraph.polyomino.org.uk> <CAKmqyKOgFRfMOws_-48GqMnuS3ygmN9A4DzLg6UtEjRXVoM82A@mail.gmail.com> <8a9784b3-fc52-adc3-4595-33142b059388@synopsys.com> <20200220001136.2f14236e@jawa> <[🔎] CAK8P3a1b73K+RjfHONWLy_dFUucXxwd+0jTnHmkf6YqwRjit4w@mail.gmail.com> <[🔎] 20200220103716.2f526933@jawa> <[🔎] CAK8P3a2n6fRm4C5Ywyk5ys92jSOAc5SwvBVZyFOY9=4rB2pyjw@mail.gmail.com> <[🔎] 20200224100051.2511d797@jawa> <[🔎] mvmpne4xqpb.fsf@suse.de> <[🔎] 20200224111424.33759b2e@jawa> <[🔎] mvmh7zgxozs.fsf@suse.de> <[🔎] 20200224113658.275ea702@jawa>
On Feb 24 2020, Lukasz Majewski wrote:
> On Mon, 24 Feb 2020 11:23:51 +0100
> Andreas Schwab <schwab@suse.de> wrote:
>
>> On Feb 24 2020, Lukasz Majewski wrote:
>>
>> > If I add those functions as hidden_alias then those would be
>> > accessible inside glibc without PLT, but will not be exported (and
>> > redirection for Y2038 will not work).
>>
>> They aren't? PLT avoidance is about internal references, and uses a
>> different name then the exported sybmol.
>>
>
> I'm probably not aware of something - but as done in the following
> patch:
>
> https://github.com/lmajewski/y2038_glibc/commit/c96eeb73175961c4ac80fdd3b6adc132805387c9
>
> I do need to remove librt_hidden_proto / librt_hidden_def to have
> proper symbols visible when I do want to use redirections.
You cannot redirect to GLIBC_PRIVATE symbols, they are not suposed to be
used by public interfaces. All public interfaces need to use official
versioned symbols.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
Reply to: