diff options
author | Alexander Dahl <post@lespocky.de> | 2012-02-01 12:54:50 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-02-01 13:15:36 +0100 |
commit | d479d445f08a4aa32f9c552533dcfaf0d25f8478 (patch) | |
tree | 040a82e94f8a3c18e6d013bbafdc33d466be8a2a /patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch | |
parent | 1b336ef5804b78089db8cf9336a457563acaaa52 (diff) | |
download | ptxdist-d479d445f08a4aa32f9c552533dcfaf0d25f8478.tar.gz ptxdist-d479d445f08a4aa32f9c552533dcfaf0d25f8478.tar.xz |
add patch fixing at91bootstrap build with gcc 4.6.x, and recreate patch series
Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch')
-rw-r--r-- | patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch b/patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch new file mode 100644 index 000000000..19b736b41 --- /dev/null +++ b/patches/Bootstrap-v1.16/0002-elf32-littlearm.lds-fix-overlap-linker-error.patch @@ -0,0 +1,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 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds +index bf02b93..d85680c 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) |