freebsd-skq/sys/powerpc
Justin Hibbits 0499e9c619 powerpc64: Use medium code model in asm files for TOC references
Summary:
With a sufficiently large TOC, it's possible to index out of range, as
the immediate load instructions only permit 16-bit indices, allowing up
to 64kB range (signed) from the base pointer.  Allow +/- 2GB range, with
the medium code model TOC accesses in asm.

Patch originally by Brandon Bergren.  The issue appears to impact ELFv2
more than ELFv1.

Reviewed by:	luporl
Differential Revision: https://reviews.freebsd.org/D19708
2019-03-29 02:38:30 +00:00
..
aim powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
booke powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
conf powerpc: Clamp MAXCPU for MPC85XXSPE kernel to 2 2019-02-10 20:21:20 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Fix FPU fsqrt emulation special case results 2019-01-16 03:52:43 +00:00
include powerpc: Remove now-obsolete P9H MMU name 2019-03-29 02:11:48 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Synchronize timebase the platform correct way 2019-02-27 03:30:49 +00:00
ofw powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
powermac powerpc: Add opaque 'private data' to interrupt vectors 2019-01-12 22:05:42 +00:00
powernv powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
powerpc powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
ps3 powerpc: Add opaque 'private data' to interrupt vectors 2019-01-12 22:05:42 +00:00
pseries [ppc64] llan: fix fatal kernel trap when system is low on memory 2019-02-05 18:16:14 +00:00
psim add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00