|
@@ -71,6 +71,13 @@ ifdef CONFIG_MLONGCALLS
|
|
|
KBUILD_CFLAGS_KERNEL += -mlong-calls
|
|
|
endif
|
|
|
|
|
|
+# Without this, "ld -r" results in .text sections that are too big (> 0x40000)
|
|
|
+# for branches to reach stubs. And multiple .text sections trigger a warning
|
|
|
+# when creating the sysfs module information section.
|
|
|
+ifndef CONFIG_64BIT
|
|
|
+KBUILD_CFLAGS_MODULE += -ffunction-sections
|
|
|
+endif
|
|
|
+
|
|
|
# select which processor to optimise for
|
|
|
cflags-$(CONFIG_PA7000) += -march=1.1 -mschedule=7100
|
|
|
cflags-$(CONFIG_PA7200) += -march=1.1 -mschedule=7200
|