]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
avr32: fix linking
authorAndreas Bießmann <biessmann@corscience.de>
Wed, 9 Feb 2011 04:10:30 +0000 (04:10 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 18 May 2011 05:56:52 +0000 (07:56 +0200)
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>
arch/avr32/config.mk
board/atmel/atngw100/config.mk
board/atmel/atstk1000/config.mk
board/earthlcd/favr-32-ezkit/config.mk
board/mimc/mimc200/config.mk
board/miromico/hammerhead/config.mk

index 9488c49132832e02a6d9d80f539012be5755193b..ef147105b73eadd5f344288fed4e4c4b3fa08cdf 100644 (file)
@@ -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
index ea76d05df87abbfb8998fc84dd3d39c594b23b74..c3c7433214f6a3b0cbfef02e7ea9f06f74f83b73 100644 (file)
@@ -1,3 +1,2 @@
 CONFIG_SYS_TEXT_BASE           = 0x00000000
 PLATFORM_RELFLAGS      += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS       += --gc-sections
index 284f7ff32e6f86a933c8a34e8e37b833cbac5e74..455b0d5e8beb2b709743025228c37be71914a6f0 100644 (file)
@@ -1,3 +1,2 @@
 PLATFORM_RELFLAGS      += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS       += --gc-sections
 CONFIG_SYS_TEXT_BASE           = 0x00000000
index 284f7ff32e6f86a933c8a34e8e37b833cbac5e74..455b0d5e8beb2b709743025228c37be71914a6f0 100644 (file)
@@ -1,3 +1,2 @@
 PLATFORM_RELFLAGS      += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS       += --gc-sections
 CONFIG_SYS_TEXT_BASE           = 0x00000000
index ea76d05df87abbfb8998fc84dd3d39c594b23b74..c3c7433214f6a3b0cbfef02e7ea9f06f74f83b73 100644 (file)
@@ -1,3 +1,2 @@
 CONFIG_SYS_TEXT_BASE           = 0x00000000
 PLATFORM_RELFLAGS      += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS       += --gc-sections
index ea76d05df87abbfb8998fc84dd3d39c594b23b74..c3c7433214f6a3b0cbfef02e7ea9f06f74f83b73 100644 (file)
@@ -1,3 +1,2 @@
 CONFIG_SYS_TEXT_BASE           = 0x00000000
 PLATFORM_RELFLAGS      += -ffunction-sections -fdata-sections
-PLATFORM_LDFLAGS       += --gc-sections