Message ID | cover.1610016590.git.szabolcs.nagy@arm.com |
---|---|
Headers | show |
Series | fix ifunc with static pie [BZ #27072] | expand |
On Thu, Jan 7, 2021 at 3:01 AM Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org> wrote: > > on aarch64 this depends on a patch i posted earlier: > https://sourceware.org/pipermail/libc-alpha/2021-January/121366.html > > with that aarch64 static pie tests pass. > > i'm still working on the tunables change and thinging about > libc build time checks for reloc-free early startup code. > > i havent tested x86, it might need changes. Please fix the linker bug: https://sourceware.org/bugzilla/show_bug.cgi?id=13302 first before changing glibc.
On 1/7/21 7:48 AM, H.J. Lu via Libc-alpha wrote: > On Thu, Jan 7, 2021 at 3:01 AM Szabolcs Nagy via Libc-alpha > <libc-alpha@sourceware.org> wrote: >> >> on aarch64 this depends on a patch i posted earlier: >> https://sourceware.org/pipermail/libc-alpha/2021-January/121366.html >> >> with that aarch64 static pie tests pass. >> >> i'm still working on the tunables change and thinging about >> libc build time checks for reloc-free early startup code. >> >> i havent tested x86, it might need changes. > > Please fix the linker bug: > > https://sourceware.org/bugzilla/show_bug.cgi?id=13302 > > first before changing glibc. You will still need potential changes in the loader to handle existing binaries, so the binutils fix need not come first, but it needs fixing.
On Thu, Jan 7, 2021 at 4:50 AM Carlos O'Donell <carlos@redhat.com> wrote: > > On 1/7/21 7:48 AM, H.J. Lu via Libc-alpha wrote: > > On Thu, Jan 7, 2021 at 3:01 AM Szabolcs Nagy via Libc-alpha > > <libc-alpha@sourceware.org> wrote: > >> > >> on aarch64 this depends on a patch i posted earlier: > >> https://sourceware.org/pipermail/libc-alpha/2021-January/121366.html > >> > >> with that aarch64 static pie tests pass. > >> > >> i'm still working on the tunables change and thinging about > >> libc build time checks for reloc-free early startup code. > >> > >> i havent tested x86, it might need changes. > > > > Please fix the linker bug: > > > > https://sourceware.org/bugzilla/show_bug.cgi?id=13302 > > > > first before changing glibc. > > You will still need potential changes in the loader to handle > existing binaries, so the binutils fix need not come first, Linker fix may impact how glibc should be changed. > but it needs fixing. > Whatever we do in glibc, please make it target dependent and it should be NOP for x86.
The 01/07/2021 04:55, H.J. Lu wrote: > Whatever we do in glibc, please make it target dependent > and it should be NOP for x86. the current x86 logic is completely broken it is not valid to do irelative before tunables.
On Thu, Jan 7, 2021 at 5:03 AM Szabolcs Nagy <szabolcs.nagy@arm.com> wrote: > > The 01/07/2021 04:55, H.J. Lu wrote: > > Whatever we do in glibc, please make it target dependent > > and it should be NOP for x86. > > the current x86 logic is completely broken > > it is not valid to do irelative before tunables. Do you have a testcase to show that?
The 01/07/2021 05:15, H.J. Lu wrote: > On Thu, Jan 7, 2021 at 5:03 AM Szabolcs Nagy <szabolcs.nagy@arm.com> wrote: > > > > The 01/07/2021 04:55, H.J. Lu wrote: > > > Whatever we do in glibc, please make it target dependent > > > and it should be NOP for x86. > > > > the current x86 logic is completely broken > > > > it is not valid to do irelative before tunables. > > Do you have a testcase to show that? what's the point of GLIBC_TUNABLES=glibc.cpu.hwcaps=... if it does not affect ifunc selection?