Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiang Liu and committed by
Linus Torvalds
5dd7cd11 06256f8f

+2 -1
-1
arch/h8300/boot/compressed/misc.c
··· 79 79 80 80 int puts(const char *); 81 81 82 - extern int _text; /* Defined in vmlinux.lds.S */ 83 82 extern int _end; 84 83 static unsigned long free_mem_ptr; 85 84 static unsigned long free_mem_end_ptr;
+2
arch/h8300/kernel/vmlinux.lds.S
··· 132 132 { 133 133 . = ALIGN(0x4) ; 134 134 __sbss = . ; 135 + ___bss_start = . ; 135 136 *(.bss*) 136 137 . = ALIGN(0x4) ; 137 138 *(COMMON) 138 139 . = ALIGN(0x4) ; 140 + ___bss_stop = . ; 139 141 __ebss = . ; 140 142 __end = . ; 141 143 __ramstart = .;