]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Transition to Secure-PLT, like most other OSs
authorjhibbits <jhibbits@FreeBSD.org>
Tue, 25 Jun 2019 00:40:44 +0000 (00:40 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Tue, 25 Jun 2019 00:40:44 +0000 (00:40 +0000)
commit125154cabb2191d6ef5452965066193f07f09938
tree041a7841c0913c7d28147defb90e33fda6390de3
parentdcddd844b793c2cced93dbfbdde6de1ccbc5b3cc
powerpc: Transition to Secure-PLT, like most other OSs

Summary:
PowerPC has two PLT models: BSS-PLT and Secure-PLT.  BSS-PLT uses runtime
code generation to generate the PLT stubs.  Secure-PLT was introduced with
GCC 4.1 and Binutils 2.17 (base has GCC 4.2.1 and Binutils 2.17), and is a
more secure PLT format, using a read-only linkage table, with the dynamic
linker populating a non-executable index table.

This is the libc, rtld, and kernel support only.  The toolchain and build
parts will be updated separately.

Reviewed By: nwhitehorn, bdragon, pfg
Differential Revision: https://reviews.freebsd.org/D20598
MFC after: 1 month
contrib/gcc/config/rs6000/tramp.asm
lib/libc/powerpc/SYS.h
lib/libc/powerpc/gen/_ctx_start.S
lib/libc/powerpc/sys/cerror.S
libexec/rtld-elf/powerpc/reloc.c
libexec/rtld-elf/powerpc/rtld_start.S
libexec/rtld-elf/rtld.c
libexec/rtld-elf/rtld.h
sys/powerpc/powerpc/machdep.c