h8300: normalize global variables exported by vmlinux.lds
Generate mandatory global variables __bss_start/__bss_stop in file vmlinux.lds. Also remove one unused declaration of _text. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
06256f8f71
commit
5dd7cd11a0
2 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,6 @@ static void error(char *m);
|
||||||
|
|
||||||
int puts(const char *);
|
int puts(const char *);
|
||||||
|
|
||||||
extern int _text; /* Defined in vmlinux.lds.S */
|
|
||||||
extern int _end;
|
extern int _end;
|
||||||
static unsigned long free_mem_ptr;
|
static unsigned long free_mem_ptr;
|
||||||
static unsigned long free_mem_end_ptr;
|
static unsigned long free_mem_end_ptr;
|
||||||
|
|
|
@ -132,10 +132,12 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(0x4) ;
|
. = ALIGN(0x4) ;
|
||||||
__sbss = . ;
|
__sbss = . ;
|
||||||
|
___bss_start = . ;
|
||||||
*(.bss*)
|
*(.bss*)
|
||||||
. = ALIGN(0x4) ;
|
. = ALIGN(0x4) ;
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(0x4) ;
|
. = ALIGN(0x4) ;
|
||||||
|
___bss_stop = . ;
|
||||||
__ebss = . ;
|
__ebss = . ;
|
||||||
__end = . ;
|
__end = . ;
|
||||||
__ramstart = .;
|
__ramstart = .;
|
||||||
|
|
Loading…
Add table
Reference in a new issue