Skip to contentSkip to conversation

at91bootstrap: fix overlap linker issue

PATCH New Gregory Hermant 2 participants 2 messages Nov 6, 2012 – Nov 8, 2012 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 at91bootstrap: fix overlap linker issue

The linker script of the at91bootstrap package has to be modified when built from gcc-4.6.x version. Indeed a section named text.startup is created and has to be added into the text section.

---
 ...at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch |   29 ++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch
boot/at91bootstrap/at91bootstrap-1.16-gcc-4.6.x-ldscript-fix.patch new file +29 -0
new file mode 100644
index 0000000..e4ed04e
@@ -0,0 +1,29 @@
+From b783d1f9bf985c0981e755bd2c13e091e9d6837f Mon Sep 17 00:00:00 2001
+From: Gregory Hermant <[email protected]>
+Date: Tue, 6 Nov 2012 09:38:50 +0100
+Subject: [PATCH] at91bootstrap: fix overlap linker issue
+
+The linker script of the at91bootstrap package has to be modified when
+built from gcc-4.6.x version. Indeed a section named text.startup is
+created and has to be added into the text section.
+
+Signed-off-by: Gregory Hermant <[email protected]>
+---
+ elf32-littlearm.lds |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/elf32-littlearm.lds b/elf32-littlearm.lds
+index a33952f..4f3ba25 100644
+--- a/elf32-littlearm.lds
++++ b/elf32-littlearm.lds
+@@ -7,6 +7,7 @@ SECTIONS
+ 	.text : { 
+ 		_stext = .;
+ 		*(.text)
++		*(.text*)
+ 		*(.rodata)                 /* read-only data (constants) */
+ 		*(.rodata*)
+ 		. = ALIGN(4);
+-- 
+1.7.9.5
+
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/1 at91bootstrap: fix overlap linker issue

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gregory" == Gregory Hermant <[email protected]> writes:

Gregory> The linker script of the at91bootstrap package has to be Gregory> modified when built from gcc-4.6.x version. Indeed a section Gregory> named text.startup is created and has to be added into the Gregory> text section.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard