aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bießmann <biessmann@corscience.de>2011-02-09 04:10:30 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-05-18 07:56:52 +0200
commitc8e7ddd4c6d0e195fa2f28c534f5c8233547c59e (patch)
treef265b4fcdf59803bb542670a565b9105eee4154e
parent74cd9777f8dd44fd944a9ac75cfbc24eeb206453 (diff)
downloadu-boot-linaro-stable-c8e7ddd4c6d0e195fa2f28c534f5c8233547c59e.tar.gz
avr32: fix linking
This patch fixes following error: ---8<--- avr32-linux-ld: --gc-sections and -r may not be used together --->8--- Since 8aba9dceebb14144e07d19593111ee3a999c37fc all avr32 boards are broken due to linking error as seen above. Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
-rw-r--r--arch/avr32/config.mk2
-rw-r--r--board/atmel/atngw100/config.mk1
-rw-r--r--board/atmel/atstk1000/config.mk1
-rw-r--r--board/earthlcd/favr-32-ezkit/config.mk1
-rw-r--r--board/mimc/mimc200/config.mk1
-rw-r--r--board/miromico/hammerhead/config.mk1
6 files changed, 1 insertions, 6 deletions
diff --git a/arch/avr32/config.mk b/arch/avr32/config.mk
index 9488c4913..ef147105b 100644
--- a/arch/avr32/config.mk
+++ b/arch/avr32/config.mk
@@ -26,4 +26,4 @@ CROSS_COMPILE ?= avr32-linux-
CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000
PLATFORM_RELFLAGS += -ffixed-r5 -fPIC -mno-init-got -mrelax
-PLATFORM_LDFLAGS += --relax
+LDFLAGS_u-boot = --gc-sections --relax
diff --git a/board/atmel/atngw100/config.mk b/board/atmel/atngw100/config.mk
index ea76d05df..c3c743321 100644
--- a/board/atmel/atngw100/config.mk
+++ b/board/atmel/atngw100/config.mk
@@ -1,3 +1,2 @@
CONFIG_SYS_TEXT_BASE = 0x00000000
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS += --gc-sections
diff --git a/board/atmel/atstk1000/config.mk b/board/atmel/atstk1000/config.mk
index 284f7ff32..455b0d5e8 100644
--- a/board/atmel/atstk1000/config.mk
+++ b/board/atmel/atstk1000/config.mk
@@ -1,3 +1,2 @@
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS += --gc-sections
CONFIG_SYS_TEXT_BASE = 0x00000000
diff --git a/board/earthlcd/favr-32-ezkit/config.mk b/board/earthlcd/favr-32-ezkit/config.mk
index 284f7ff32..455b0d5e8 100644
--- a/board/earthlcd/favr-32-ezkit/config.mk
+++ b/board/earthlcd/favr-32-ezkit/config.mk
@@ -1,3 +1,2 @@
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS += --gc-sections
CONFIG_SYS_TEXT_BASE = 0x00000000
diff --git a/board/mimc/mimc200/config.mk b/board/mimc/mimc200/config.mk
index ea76d05df..c3c743321 100644
--- a/board/mimc/mimc200/config.mk
+++ b/board/mimc/mimc200/config.mk
@@ -1,3 +1,2 @@
CONFIG_SYS_TEXT_BASE = 0x00000000
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS += --gc-sections
diff --git a/board/miromico/hammerhead/config.mk b/board/miromico/hammerhead/config.mk
index ea76d05df..c3c743321 100644
--- a/board/miromico/hammerhead/config.mk
+++ b/board/miromico/hammerhead/config.mk
@@ -1,3 +1,2 @@
CONFIG_SYS_TEXT_BASE = 0x00000000
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS += --gc-sections