mbox series

[uclibc-ng-devel,0/1] V3 fix powerpc PIE/PIC + secure-plt builds

Message ID 20210528065958.3965167-1-yann@sionneau.net
Headers show
Series V3 fix powerpc PIE/PIC + secure-plt builds | expand

Message

Yann Sionneau May 28, 2021, 6:59 a.m. UTC
This is the 3rd iteration of the patch, here are the changes with regard to previous one:
* more precise description of the problem.
* only set r30 in PIC+secureplt case as it seems indeed to be the only case which causes problem. Secureplt without PIC does not need r30.
* don't rely on uclibc being already built: now we check for secure-plt by doing $(CC) --verbose and searching for the ./configure parameters of GCC for "--enable-secureplt".

Yann Sionneau (1):
  powerpc: fix PIE/PIC builds with newer gcc/binutils which use
    secureplt by default

 Rules.mak                         | 3 ++-
 ldso/ldso/powerpc/dl-startup.h    | 3 +++
 libc/sysdeps/linux/powerpc/crt1.S | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)