|
@@ -23,7 +23,7 @@
|
|
|
|
|
|
CROSS_COMPILE ?= bfin-uclinux-
|
|
CROSS_COMPILE ?= bfin-uclinux-
|
|
|
|
|
|
-STANDALONE_LOAD_ADDR = 0x1000
|
|
|
|
|
|
+STANDALONE_LOAD_ADDR = 0x1000 -m elf32bfin
|
|
|
|
|
|
CONFIG_BFIN_CPU := $(strip $(subst ",,$(CONFIG_BFIN_CPU)))
|
|
CONFIG_BFIN_CPU := $(strip $(subst ",,$(CONFIG_BFIN_CPU)))
|
|
CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
|
|
CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
|
|
@@ -33,7 +33,7 @@ CONFIG_ENV_SIZE := $(strip $(subst ",,$(CONFIG_ENV_SIZE)))
|
|
PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic
|
|
PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic
|
|
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
|
|
PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
|
|
|
|
|
|
-LDFLAGS += --gc-sections
|
|
|
|
|
|
+LDFLAGS += --gc-sections -m elf32bfin
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
|
|
|
|
|
ifneq (,$(CONFIG_BFIN_CPU))
|
|
ifneq (,$(CONFIG_BFIN_CPU))
|