[PATCH] powerpc: Optimise some TOC usage
Anton Blanchard
anton at samba.org
Sat Jun 10 20:23:54 EST 2006
Micro-optimisation - add no-minimal-toc to some more arch/powerpc Makefiles.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
Index: build/arch/powerpc/lib/Makefile
===================================================================
--- build.orig/arch/powerpc/lib/Makefile 2006-05-27 09:52:19.000000000 +1000
+++ build/arch/powerpc/lib/Makefile 2006-05-27 09:52:27.000000000 +1000
@@ -2,6 +2,10 @@
# Makefile for ppc-specific library files..
#
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS += -mno-minimal-toc
+endif
+
ifeq ($(CONFIG_PPC_MERGE),y)
obj-y := string.o strcase.o
obj-$(CONFIG_PPC32) += div64.o copy_32.o checksum_32.o
Index: build/arch/powerpc/oprofile/Makefile
===================================================================
--- build.orig/arch/powerpc/oprofile/Makefile 2006-05-27 09:52:19.000000000 +1000
+++ build/arch/powerpc/oprofile/Makefile 2006-05-27 09:52:27.000000000 +1000
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS += -mno-minimal-toc
+endif
+
obj-$(CONFIG_OPROFILE) += oprofile.o
DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
Index: build/arch/powerpc/sysdev/Makefile
===================================================================
--- build.orig/arch/powerpc/sysdev/Makefile 2006-05-27 09:52:19.000000000 +1000
+++ build/arch/powerpc/sysdev/Makefile 2006-05-27 09:52:27.000000000 +1000
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS += -mno-minimal-toc
+endif
+
obj-$(CONFIG_MPIC) += mpic.o
obj-$(CONFIG_PPC_INDIRECT_PCI) += indirect_pci.o
obj-$(CONFIG_PPC_I8259) += i8259.o
Index: build/arch/powerpc/platforms/pseries/Makefile
===================================================================
--- build.orig/arch/powerpc/platforms/pseries/Makefile 2006-05-27 09:52:19.000000000 +1000
+++ build/arch/powerpc/platforms/pseries/Makefile 2006-05-27 09:52:27.000000000 +1000
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS += -mno-minimal-toc
+endif
+
obj-y := pci.o lpar.o hvCall.o nvram.o reconfig.o \
setup.o iommu.o ras.o rtasd.o pci_dlpar.o \
firmware.o
More information about the Linuxppc-dev
mailing list