mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
1fbe9cf259
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>
11 lines
318 B
Makefile
11 lines
318 B
Makefile
ccflags-y += $(NO_MINIMAL_TOC)
|
|
|
|
obj-y += setup.o ics.o wsp.o
|
|
obj-$(CONFIG_PPC_PSR2) += psr2.o
|
|
obj-$(CONFIG_PPC_CHROMA) += chroma.o h8.o
|
|
obj-$(CONFIG_PPC_WSP) += opb_pic.o
|
|
obj-$(CONFIG_PPC_WSP) += scom_wsp.o
|
|
obj-$(CONFIG_SMP) += smp.o scom_smp.o
|
|
obj-$(CONFIG_PCI) += wsp_pci.o
|
|
obj-$(CONFIG_PCI_MSI) += msi.o
|