Skip to contentSkip to conversation

arm: ep9315: Add .vectors section to lds and remove obsolete lds

PATCH In review Sergey Kostanbaev 2 participants 2 messages Jul 28, 2014 – Aug 30, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: ep9315: Add .vectors section to lds and remove obsolete lds

However ep9315 don't use
interrupt vectors during startup, but _startup symbol is used inside uboot to calculate actual monitor size.

Cc albert.u.boot at aribaud.net
---
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds | 58 ----------------------------------
 board/cirrus/edb93xx/u-boot.lds        |  1 +
 2 files changed, 1 insertion(+), 58 deletions(-)
 delete mode 100644 arch/arm/cpu/arm920t/ep93xx/u-boot.lds
arch/arm/cpu/arm920t/ep93xx/u-boot.lds deleted +0 -58
deleted file mode 100644
index 623a635..0000000
@@ -1,58 +0,0 @@
-/*
- * (C) Copyright 2002
- * Gary Jennejohn, DENX Software Engineering, <[email protected]>
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
-OUTPUT_ARCH(arm)
-ENTRY(_start)
-SECTIONS
-{
-	. = 0x00000000;
-
-	. = ALIGN(4);
-	.text      :
-	{
-		*(.__image_copy_start)
-		*(.vectors)
-		arch/arm/cpu/arm920t/start.o	(.text*)
-		/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
-	  . = 0x1000;
-	  LONG(0x53555243)
-	  *(.text*)
-	}
-
-	. = ALIGN(4);
-	.rodata : { *(.rodata*) }
-
-	. = ALIGN(4);
-	.data : { *(.data*) }
-
-	. = ALIGN(4);
-	.got : { *(.got) }
-
-	. = .;
-
-	. = ALIGN(4);
-	.u_boot_list : {
-		KEEP(*(SORT(.u_boot_list*)));
-	}
-
-	. = ALIGN(4);
-
-	.image_copy_end :
-	{
-		*(.__image_copy_end)
-	}
-
-	__bss_start = .;
-	.bss : { *(.bss*) }
-	__bss_end = .;
-
-	.end :
-	{
-		*(.__end)
-	}
-}
board/cirrus/edb93xx/u-boot.lds +1 -0
index b0d892a..4aa7891 100644
@@ -21,6 +21,7 @@ SECTIONS
 	. = ALIGN(4);
 	.text : {
 		*(.__image_copy_start)
+		*(.vectors)
 		arch/arm/cpu/arm920t/start.o (.text*)
 		. = 0x1000;
 
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 6 lines · Sergey Kostanbaev

However ep9315 don't use
interrupt vectors during startup, but _startup symbol is used inside uboot to calculate actual monitor size.

Cc albert.u.boot at aribaud.net

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140830/fda6adfe/attachment.pgp>