mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] add patch for building at91bootstrap with gcc 4.6.x
@ 2012-01-26 15:04 Alexander Dahl
  2012-01-26 15:36 ` Michael Olbrich
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Dahl @ 2012-01-26 15:04 UTC (permalink / raw)
  To: ptxdist


Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 .../0002-fix-overlap-linker-error.patch            |   23 ++++++++++++++++++++
 patches/Bootstrap-v1.16/series                     |    1 +
 2 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100755 patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch

diff --git a/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch b/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch
new file mode 100755
index 0000000..a86979f
--- /dev/null
+++ b/patches/Bootstrap-v1.16/0002-fix-overlap-linker-error.patch
@@ -0,0 +1,23 @@
+circumvent gcc 4.6.x linker overlap error, suggestion from AT91 forum at
+http://www.at91.com/forum/viewtopic.php/f,12/t,20624/
+---
+ elf32-littlearm.lds |    6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+Index: Bootstrap-v1.16/elf32-littlearm.lds
+===================================================================
+--- Bootstrap-v1.16.orig/elf32-littlearm.lds
++++ Bootstrap-v1.16/elf32-littlearm.lds
+@@ -14,7 +14,11 @@
+ 	}
+ 
+ 	/* collect all initialized .data sections */
+-	.data : AT ( ADDR (.text) + SIZEOF (.text) ) { 
++    . = ALIGN(4);
++    .dummy : {
++        _edummy = .;
++    }
++	.data : AT ( LOADADDR(.dummy) ) {
+ 		_sdata = .;
+ 		*(.vectors)
+ 		*(.data)
diff --git a/patches/Bootstrap-v1.16/series b/patches/Bootstrap-v1.16/series
index 3355399..86f4119 100644
--- a/patches/Bootstrap-v1.16/series
+++ b/patches/Bootstrap-v1.16/series
@@ -1 +1,2 @@
 0001-crt0_gnu.S-fix-image-size.patch
+0002-fix-overlap-linker-error.patch
-- 
1.7.2.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-01 12:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-26 15:04 [ptxdist] [PATCH] add patch for building at91bootstrap with gcc 4.6.x Alexander Dahl
2012-01-26 15:36 ` Michael Olbrich
2012-01-27  9:25   ` Alexander Dahl
2012-01-30 14:20     ` Michael Olbrich
2012-01-31 16:54       ` Alexander Dahl
2012-01-31 19:29         ` Michael Olbrich
2012-02-01 11:54           ` [ptxdist] [PATCH] add patch fixing at91bootstrap build with gcc 4.6.x, and recreate patch series Alexander Dahl
2012-02-01 12:20             ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox