From f5a302378aa062916b5838a81c26567b59f93a8f Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Sat, 9 Feb 2013 14:53:47 -0800 Subject: [PATCH] armv7: make bootblock linker script more explicit This adds a .bl1 and .start symbol that is placed at the beginning of the .rom section. The goal is to move the .id section in between the reset vector and bootblock_main. Change-Id: Ie732ce656d697c059cc0fa40c844b39f53fc214c Signed-off-by: David Hendricks Reviewed-on: http://review.coreboot.org/2344 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/arch/armv7/bootblock.inc | 2 ++ src/arch/armv7/bootblock.lds | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/arch/armv7/bootblock.inc b/src/arch/armv7/bootblock.inc index 25cc8c6be4..efe3d67bd1 100644 --- a/src/arch/armv7/bootblock.inc +++ b/src/arch/armv7/bootblock.inc @@ -31,6 +31,7 @@ #include +.section ".bl1", "a", %progbits _bl1: /* For now we have to live with a first stage boot loader * on ARM, which is 8KB in size and it is prepended to the @@ -38,6 +39,7 @@ _bl1: */ .skip (CONFIG_BL1_SIZE_KB * 1024) +.section ".start", "a", %progbits .globl _start _start: b reset .balignl 16,0xdeadbeef diff --git a/src/arch/armv7/bootblock.lds b/src/arch/armv7/bootblock.lds index 9482cef34d..f45e6c072d 100644 --- a/src/arch/armv7/bootblock.lds +++ b/src/arch/armv7/bootblock.lds @@ -30,6 +30,8 @@ SECTIONS /* This section might be better named .setup */ .rom ROMLOC : { _rom = .; + *(.bl1); + *(.start); *(.text); *(.text.*); *(.rom.text);