[PATCH 3/3] csu: Move static pie self relocation later [BZ #27072]
H.J. Lu
hjl.tools@gmail.com
Thu Jan 7 12:36:22 GMT 2021
On Thu, Jan 7, 2021 at 3:04 AM Szabolcs Nagy via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> On targets where hidden symbol access does not need RELATIVE
> relocs, move the static pie self relocation after tunables and
> cpu features are set up. This allows processing IRELATIVE
> relocs with correct ifunc dispatch logic.
>
> Unfortunately it is hard to guarantee that there will be no
> dynamic relocations in the early start up code, so this is a
> bit fragile. Ideally the RELATIVE relocs would be processed as
> early as possible and IRELATIVE relocs after cpu features are
> setup, but in glibc it is hard to separate them into two steps.
x86 linker places IRELATIVE relocations the last:
https://sourceware.org/bugzilla/show_bug.cgi?id=13302
Does your linker have this bug fixed?
--
H.J.
More information about the Libc-alpha
mailing list