mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
45397816b2
commit
a52852c5a6
2 changed files with 19 additions and 6 deletions
|
@ -70,13 +70,14 @@ SECTIONS
|
||||||
uboot_end_data = .;
|
uboot_end_data = .;
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.sbss : {
|
.bss : {
|
||||||
*(.sbss*)
|
__bss_start = .;
|
||||||
|
*(.sbss.*)
|
||||||
|
*(.bss.*)
|
||||||
|
*(COMMON)
|
||||||
|
. = ALIGN(4);
|
||||||
|
__bss_end = .;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bss : {
|
|
||||||
*(.bss*)
|
|
||||||
. = ALIGN(4);
|
|
||||||
}
|
|
||||||
uboot_end = .;
|
uboot_end = .;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,16 @@
|
||||||
extern ulong uboot_end_data;
|
extern ulong uboot_end_data;
|
||||||
extern ulong uboot_end;
|
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);
|
extern int incaip_set_cpuclk(void);
|
||||||
|
|
Loading…
Reference in a new issue