linux/arch/powerpc/oprofile
Anton Blanchard 1fbe9cf259 powerpc: Build kernel with -mcmodel=medium
Finally remove the two level TOC and build with -mcmodel=medium.

Unfortunately we can't build modules with -mcmodel=medium due to
the tricks the kernel module loader plays with percpu data:

# -mcmodel=medium breaks modules because it uses 32bit offsets from
# the TOC pointer to create pointers where possible. Pointers into the
# percpu data area are created by this method.
#
# The kernel module loader relocates the percpu data section from the
# original location (starting with 0xd...) to somewhere in the base
# kernel percpu data space (starting with 0xc...). We need a full
# 64bit relocation for this to work, hence -mcmodel=large.

On older kernels we fall back to the two level TOC (-mminimal-toc)

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-01-10 17:00:31 +11:00
..
cell mm: use mm->exe_file instead of first VM_EXECUTABLE vma->vm_file 2012-10-09 16:22:18 +09:00
Makefile powerpc: Build kernel with -mcmodel=medium 2013-01-10 17:00:31 +11:00
backtrace.c powerpc: Use is_32bit_task() helper to test 32-bit binary 2010-09-02 14:07:32 +10:00
common.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_7450.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_cell.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_fsl_emb.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_pa6t.c powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
op_model_power4.c powerpc/oprofile: Fix marked events support on Power7+ not set. 2012-09-07 11:10:54 +10:00
op_model_rs64.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00