Skip to content
Snippets Groups Projects
Commit a52852c5 authored by Daniel Schwierzeck's avatar Daniel Schwierzeck
Browse files

MIPS: u-boot.lds: merge all BSS sections and introduce symbols __bss_[start|end]


These symbols are used in later patches for as addresses for
clearing the BSS area in the relocated U-Boot image.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
parent 45397816
No related branches found
No related tags found
No related merge requests found
......@@ -70,13 +70,14 @@ SECTIONS
uboot_end_data = .;
. = ALIGN(4);
.sbss : {
*(.sbss*)
}
.bss : {
*(.bss*)
__bss_start = .;
*(.sbss.*)
*(.bss.*)
*(COMMON)
. = ALIGN(4);
__bss_end = .;
}
uboot_end = .;
}
......@@ -8,4 +8,16 @@
extern ulong uboot_end_data;
extern ulong uboot_end;
static inline unsigned long bss_start(void)
{
extern ulong __bss_start;
return (unsigned long) &__bss_start;
}
static inline unsigned long bss_end(void)
{
extern ulong __bss_end;
return (unsigned long) &__bss_end;
}
extern int incaip_set_cpuclk(void);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment