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 <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2344 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
74e27b419d
commit
f5a302378a
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <system.h>
|
||||
|
||||
.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
|
||||
|
|
|
@ -30,6 +30,8 @@ SECTIONS
|
|||
/* This section might be better named .setup */
|
||||
.rom ROMLOC : {
|
||||
_rom = .;
|
||||
*(.bl1);
|
||||
*(.start);
|
||||
*(.text);
|
||||
*(.text.*);
|
||||
*(.rom.text);
|
||||
|
|
Loading…
Reference in New Issue