[U-Boot] [PATCH] ARM: fix broken build of ARM
Stefano Babic
sbabic at denx.de
Thu Jan 27 17:03:49 CET 2011
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 at denx.de>
CC: Jason Liu <liu.h.jason at gmail.com>
CC: lool at dooz.org
CC: Wolfgang Denk <wd at denx.de>
CC: Albert Aribaud <albert.aribaud at free.fr>
---
arch/arm/config.mk | 2 +-
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
--
1.7.1
More information about the U-Boot
mailing list