From: Mike Frysinger Date: Fri, 30 Oct 2009 04:30:54 +0000 (+0000) Subject: Blackfin: force BFD target when linking modules X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e92d32fcb9925884a0ad9e1ad8f10d837d7de7a6;p=linux.git 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 --- diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 9507e21ac0ac5..d4c7177e76564 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