freebsd-dev/sys/powerpc
Brandon Bergren 7821a820d0 [PowerPC] Implement Secure-PLT jump table processing for ppc32.
Due to clang and LLD's tendency to use a PLT for builtins, and as they
don't have full support for EABI, we sometimes have to deal with a PLT in
.ko files in a clang-built kernel.

As such, augment the in-kernel linker to support jump table processing.

As there is no particular reason to support lazy binding in kernel modules,
only implement Secure-PLT immediate binding.

As part of these changes, add elf_cpu_parse_dynamic() to the MD API of the
in-kernel linker (except on platforms that use raw object files.)

The new function will allow MD code to act on MD tags in _DYNAMIC.

Use this new function in the PowerPC MD code to ensure BSS-PLT modules using
PLT will be rejected during insertion, and to poison the runtime resolver to
ensure we get a clear panic reason if a call is made to the resolver.

Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D22608
2019-12-24 15:56:24 +00:00
..
aim [PowerPC] Fix powerpc 32 bit build in mmu_oea64.c 2019-12-12 16:49:55 +00:00
amigaone powerpc: Add AmigaOne platform, a subclass of MPC85xx 2019-10-16 00:38:50 +00:00
booke [PowerPC] Fix SPE floating point environment manipulation 2019-12-12 17:12:18 +00:00
conf Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include [PPC] Handle qOffsets packet 2019-12-16 13:17:39 +00:00
mambo
mikrotik
mpc85xx powerpc/mpc85xx: Clean up Freescale SATA driver a little 2019-12-15 21:08:40 +00:00
ofw Kill off dummy kbd drivers 2019-12-20 16:22:14 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powerpc/powernv: Set the PTCR for the Nest MMU 2019-12-15 21:20:18 +00:00
powerpc [PowerPC] Implement Secure-PLT jump table processing for ppc32. 2019-12-24 15:56:24 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00