summaryrefslogtreecommitdiffstats
path: root/patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch
blob: db44f2b46b8bb7bac3eebd159355a23e1da04137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Alexander Dahl <post@lespocky.de>
Date: Wed, 1 Feb 2012 12:49:15 +0100
Subject: [PATCH] elf32-littlearm.lds: fix overlap linker error

circumvent gcc 4.6.x linker overlap error, suggestion from AT91 forum at
http://www.at91.com/forum/viewtopic.php/f,12/t,20624/

This patch applies to Bootstrap-v1.16.

Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 elf32-littlearm.lds | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds
index bf02b931f488..d85680c9a409 100644
--- a/elf32-littlearm.lds
+++ b/elf32-littlearm.lds
@@ -14,7 +14,11 @@ SECTIONS
 	}
 
 	/* collect all initialized .data sections */
-	.data : AT ( ADDR (.text) + SIZEOF (.text) ) { 
+	. = ALIGN(4);
+	.dummy : {
+		_edummy = .;
+	}
+	.data : AT ( LOADADDR(.dummy) ) {
 		_sdata = .;
 		*(.vectors)
 		*(.data)