summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-30 05:30:54 +0100
committerMike Frysinger <vapier@gentoo.org>2009-12-15 06:15:25 +0100
commite92d32fcb9925884a0ad9e1ad8f10d837d7de7a6 (patch)
tree495b76fa62311dc174c815466e6b1e86469ef330 /arch/blackfin/Makefile
parentBlackfin: comment the FDPIC PTRACE defines (diff)
downloadlinux-e92d32fcb9925884a0ad9e1ad8f10d837d7de7a6.tar.xz
linux-e92d32fcb9925884a0ad9e1ad8f10d837d7de7a6.zip
Blackfin: force BFD target when linking modules
This allows us to use any Blackfin toolchain to create kernel modules (such as the FDPIC bfin-linux-uclibc toolchain). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r--arch/blackfin/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 9507e21ac0ac..d4c7177e7656 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -16,6 +16,7 @@ GZFLAGS := -9
KBUILD_CFLAGS += $(call cc-option,-mno-fdpic)
KBUILD_AFLAGS += $(call cc-option,-mno-fdpic)
CFLAGS_MODULE += -mlong-calls
+LDFLAGS_MODULE += -m elf32bfin
KALLSYMS += --symbol-prefix=_
KBUILD_DEFCONFIG := BF537-STAMP_defconfig