mbox

[v2,0/4] PowerPC64 static-pie

Message ID 20220228064052.3413334-1-amodra@gmail.com
Headers

Message

Alan Modra Feb. 28, 2022, 6:40 a.m. UTC
  This is a repost of the series at
https://sourceware.org/pipermail/libc-alpha/2022-January/135598.html
incorporating review comments.

Changes are:
- subject lines changed to comply with glibc commit log standards
- patch 1/4 log now mentions making a couple of symbols hidden
- patch 2/4 makes at_platform available to early ifunc resolvers
  as well as hwcap.
- patch 3/4 log mentions stinfo->init and stinfo->fini being unused
- patch 4/4 PI_STATIC_AND_HIDDEN comment explains what is going on

patch 2/4 is the only code change from the previous series.  Testsuite
results now show no regressions on powerpc64le-linux.

I haven't reposted the old patch 4/5 as it was just a side-issue I
noticed when looking over relative relocations.
https://sourceware.org/pipermail/libc-alpha/2022-January/135603.html 
I think it qualifies as an obvious patch so will commit it separately
from this series.

Alan Modra (4):
  powerpc64: Use medium model toc accesses throughout
  powerpc64: Set up thread register for _dl_relocate_static_pie
  powerpc: Relocate stinfo->main
  powerpc64: Enable static-pie

 sysdeps/powerpc/hwcapinfo.c                  |  8 ++---
 sysdeps/powerpc/hwcapinfo.h                  |  3 +-
 sysdeps/powerpc/nptl/tls.h                   |  8 ++---
 sysdeps/powerpc/powerpc64/__longjmp-common.S |  8 +++--
 sysdeps/powerpc/powerpc64/configure          |  6 ++++
 sysdeps/powerpc/powerpc64/configure.ac       |  9 ++++++
 sysdeps/powerpc/powerpc64/dl-machine.h       | 33 +++++++++++++++++---
 sysdeps/powerpc/powerpc64/dl-trampoline.S    |  8 +++--
 sysdeps/powerpc/powerpc64/setjmp-common.S    |  8 +++--
 sysdeps/powerpc/powerpc64/start.S            |  3 +-
 sysdeps/powerpc/powerpc64/sysdep.h           |  6 ++--
 sysdeps/unix/sysv/linux/powerpc/Makefile     |  6 ++++
 sysdeps/unix/sysv/linux/powerpc/libc-start.c | 15 +++++++--
 13 files changed, 93 insertions(+), 28 deletions(-)