summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-01-27 06:03:49 +0000
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-02 00:54:43 +0100
commita4594e41b907f60c85ed1cf96b65602f6b587a50 (patch)
treed8d0ac99a6ffd90ddde6524c221d0e8255103238
parentfe38434dfef51b55bcae5017495249689e87b110 (diff)
downloadu-boot-imx-a4594e41b907f60c85ed1cf96b65602f6b587a50.zip
u-boot-imx-a4594e41b907f60c85ed1cf96b65602f6b587a50.tar.gz
u-boot-imx-a4594e41b907f60c85ed1cf96b65602f6b587a50.tar.bz2
ARM: fix broken build of ARM
Commit 8aba9dceebb14144e07d19593111ee3a999c37fc breaks ARM boards because for ARM the -pie option is used for partial linking together with -r option. The patch adds the -pie option to link u-boot.bin only. Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Jason Liu <liu.h.jason@gmail.com> CC: lool@dooz.org CC: Wolfgang Denk <wd@denx.de> CC: Albert Aribaud <albert.aribaud@free.fr> Tested-by: Alexander Holler <holler@ahsoftware.de>
-rw-r--r--arch/arm/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 4e165bf..a6a4742 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -67,5 +67,5 @@ LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
# needed for relocation
ifndef CONFIG_NAND_SPL
-PLATFORM_LDFLAGS += -pie
+LDFLAGS_u-boot += -pie
endif