瀏覽代碼

arm: generalize lib/bss.c into lib/sections.c

File arch/arm/lib/bss.c was initially defined for BSS only,
but is now going to also contain definitions for other
section-boundary-related symbols, so rename it for better
accuracy.

Also, remove useless 'used' attributes.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Tested-by: Lubomir Popov <lpopov@mm-sol.com>
Tested-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Albert ARIBAUD 12 年之前
父節點
當前提交
df84502edf
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      arch/arm/lib/Makefile
  2. 2 2
      arch/arm/lib/sections.c

+ 1 - 1
arch/arm/lib/Makefile

@@ -43,7 +43,7 @@ SOBJS-y += relocate.o
 ifndef CONFIG_SYS_GENERIC_BOARD
 ifndef CONFIG_SYS_GENERIC_BOARD
 COBJS-y	+= board.o
 COBJS-y	+= board.o
 endif
 endif
-COBJS-y += bss.o
+COBJS-y += sections.o
 
 
 COBJS-y	+= bootm.o
 COBJS-y	+= bootm.o
 COBJS-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
 COBJS-$(CONFIG_OF_LIBFDT) += bootm-fdt.o

+ 2 - 2
arch/arm/lib/bss.c → arch/arm/lib/sections.c

@@ -35,5 +35,5 @@
  * aliasing warnings.
  * aliasing warnings.
  */
  */
 
 
-char __bss_start[0] __attribute__((used, section(".__bss_start")));
-char __bss_end[0] __attribute__((used, section(".__bss_end")));
+char __bss_start[0] __attribute__((section(".__bss_start")));
+char __bss_end[0] __attribute__((section(".__bss_end")));