uclibc: powerpc: fix PIE/PIC builds with secureplt enabled by default
authorRomain Naour <romain.naour@gmail.com>
Tue, 1 Jun 2021 19:16:16 +0000 (21:16 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 1 Jun 2021 19:48:49 +0000 (21:48 +0200)
commit826d350fc345273c56b8f3059aef2aac93181107
treed1381eee7c1d1d9d24ae4153e4f44202e4545aa0
parent6b4b63a571d7e12042d661852f034ff413ec25a7
uclibc: powerpc: fix PIE/PIC builds with secureplt enabled by default

Apply the fix provided by Yann Sionneau when secureplt is enabled
by default by gcc compiler along with PIE/PIC options.

"For the secure PLT to work in PIC, the r30 register needs to point to the GOT"

Fixes:
[qemu_ppc_e500mc_defconfig] https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661606
[qemu_ppc_g3beige_defconfig] https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661607
[qemu_ppc_mac99_defconfig] https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661609

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Yann Sionneau <yann@sionneau.net>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/uclibc/0001-powerpc-fix-PIE-PIC-builds-with-newer-gcc-binutils-w.patch [new file with mode: 0644]