barebox-data: add barebox-data sections
Add barebox-data section in arm branch to get complete barebox regions in sdram regions tree. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f8fd03225d
commit
43afe67390
|
@ -66,6 +66,7 @@ SECTIONS
|
|||
}
|
||||
#endif
|
||||
_etext = .; /* End of text and rodata section */
|
||||
_sdata = .;
|
||||
|
||||
. = ALIGN(4);
|
||||
.data : { *(.data*) }
|
||||
|
@ -87,6 +88,7 @@ SECTIONS
|
|||
__usymtab : { BAREBOX_SYMS }
|
||||
__usymtab_end = .;
|
||||
|
||||
_edata = .;
|
||||
. = ALIGN(4);
|
||||
__bss_start = .;
|
||||
.bss : { *(.bss*) }
|
||||
|
|
|
@ -55,6 +55,7 @@ SECTIONS
|
|||
.rodata : { *(.rodata) }
|
||||
|
||||
__etext = .; /* End of text and rodata section */
|
||||
__sdata = .;
|
||||
|
||||
. = ALIGN(4);
|
||||
.data : { *(.data) }
|
||||
|
@ -79,6 +80,7 @@ SECTIONS
|
|||
__usymtab : { BAREBOX_SYMS }
|
||||
___usymtab_end = .;
|
||||
|
||||
__edata = .;
|
||||
. = ALIGN(4);
|
||||
___bss_start = .;
|
||||
.bss : { *(.bss) }
|
||||
|
|
|
@ -44,6 +44,7 @@ SECTIONS
|
|||
.rodata : { *(.rodata*) }
|
||||
|
||||
_etext = .; /* End of text and rodata section */
|
||||
_sdata = .;
|
||||
|
||||
. = ALIGN(4);
|
||||
.data : { *(.data*) }
|
||||
|
@ -68,6 +69,7 @@ SECTIONS
|
|||
__usymtab : { BAREBOX_SYMS }
|
||||
__usymtab_end = .;
|
||||
|
||||
_edata = .;
|
||||
. = ALIGN(4);
|
||||
__bss_start = .;
|
||||
.bss : { *(.bss*) }
|
||||
|
|
|
@ -74,6 +74,7 @@ SECTIONS
|
|||
* adjacent to simplify the startup code -- and provide
|
||||
* the global pointer for gp-relative access.
|
||||
*/
|
||||
_sdata = .;
|
||||
_data = .;
|
||||
.data :
|
||||
{
|
||||
|
|
|
@ -41,6 +41,7 @@ SECTIONS
|
|||
|
||||
_etext = .;
|
||||
PROVIDE (etext = .);
|
||||
_sdata = .;
|
||||
|
||||
.rodata :
|
||||
{
|
||||
|
|
|
@ -69,6 +69,7 @@ SECTIONS
|
|||
. = (. + 0x0FFF) & 0xFFFFF000;
|
||||
_etext = .;
|
||||
PROVIDE (erotext = .);
|
||||
_sdata = .;
|
||||
.reloc :
|
||||
{
|
||||
*(.got)
|
||||
|
|
|
@ -153,6 +153,7 @@ SECTIONS
|
|||
} > barebox
|
||||
BAREBOX_BARE_INIT_SIZE
|
||||
|
||||
_sdata = .;
|
||||
.data : AT ( LOADADDR(.text) + SIZEOF(.text) ) {
|
||||
*(.data*)
|
||||
. = ALIGN(4);
|
||||
|
@ -191,6 +192,7 @@ SECTIONS
|
|||
. = ALIGN(4);
|
||||
} > barebox
|
||||
|
||||
_edata = .;
|
||||
.bss : {
|
||||
__bss_start = .;
|
||||
*(.bss*);
|
||||
|
|
|
@ -75,6 +75,10 @@ static int mem_malloc_resource(void)
|
|||
(unsigned long)&_stext,
|
||||
(unsigned long)&_etext -
|
||||
(unsigned long)&_stext);
|
||||
request_sdram_region("barebox data",
|
||||
(unsigned long)&_sdata,
|
||||
(unsigned long)&_edata -
|
||||
(unsigned long)&_sdata);
|
||||
request_sdram_region("bss",
|
||||
(unsigned long)&__bss_start,
|
||||
(unsigned long)&__bss_stop -
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
extern char _text[], _stext[], _etext[];
|
||||
extern char __bss_start[], __bss_stop[];
|
||||
extern char _sdata[], _edata[];
|
||||
extern char __bare_init_start[], __bare_init_end[];
|
||||
extern char _end[];
|
||||
extern void *_barebox_image_size;
|
||||
|
|
Loading…
Reference in New Issue