Pārlūkot izejas kodu

rename _end to __bss_end__

Currently, _end is used for end of BSS section.  We want _end to mean
end of u-boot image, so we rename _end to __bss_end__ first.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
Po-Yu Chuang 13 gadi atpakaļ
vecāks
revīzija
44c6e6591c
100 mainītis faili ar 117 papildinājumiem un 117 dzēšanām
  1. 1 1
      arch/arm/cpu/arm1136/start.S
  2. 1 1
      arch/arm/cpu/arm1136/u-boot.lds
  3. 1 1
      arch/arm/cpu/arm1176/start.S
  4. 1 1
      arch/arm/cpu/arm1176/u-boot.lds
  5. 1 1
      arch/arm/cpu/arm720t/start.S
  6. 1 1
      arch/arm/cpu/arm720t/u-boot.lds
  7. 1 1
      arch/arm/cpu/arm920t/ep93xx/u-boot.lds
  8. 1 1
      arch/arm/cpu/arm920t/start.S
  9. 1 1
      arch/arm/cpu/arm920t/u-boot.lds
  10. 1 1
      arch/arm/cpu/arm925t/start.S
  11. 1 1
      arch/arm/cpu/arm925t/u-boot.lds
  12. 1 1
      arch/arm/cpu/arm926ejs/start.S
  13. 1 1
      arch/arm/cpu/arm926ejs/u-boot.lds
  14. 1 1
      arch/arm/cpu/arm946es/start.S
  15. 1 1
      arch/arm/cpu/arm946es/u-boot.lds
  16. 1 1
      arch/arm/cpu/arm_intcm/start.S
  17. 1 1
      arch/arm/cpu/arm_intcm/u-boot.lds
  18. 1 1
      arch/arm/cpu/armv7/start.S
  19. 1 1
      arch/arm/cpu/armv7/u-boot.lds
  20. 1 1
      arch/arm/cpu/ixp/start.S
  21. 1 1
      arch/arm/cpu/ixp/u-boot.lds
  22. 1 1
      arch/arm/cpu/lh7a40x/start.S
  23. 1 1
      arch/arm/cpu/lh7a40x/u-boot.lds
  24. 1 1
      arch/arm/cpu/pxa/start.S
  25. 1 1
      arch/arm/cpu/pxa/u-boot.lds
  26. 1 1
      arch/arm/cpu/s3c44b0/start.S
  27. 1 1
      arch/arm/cpu/s3c44b0/u-boot.lds
  28. 1 1
      arch/arm/cpu/sa1100/start.S
  29. 1 1
      arch/arm/cpu/sa1100/u-boot.lds
  30. 1 1
      arch/avr32/cpu/start.S
  31. 1 1
      arch/avr32/include/asm/sections.h
  32. 2 2
      arch/avr32/lib/board.c
  33. 2 2
      arch/m68k/lib/board.c
  34. 3 3
      arch/nios2/cpu/start.S
  35. 1 1
      arch/nios2/cpu/u-boot.lds
  36. 2 2
      arch/powerpc/cpu/74xx_7xx/start.S
  37. 1 1
      arch/powerpc/cpu/74xx_7xx/u-boot.lds
  38. 2 2
      arch/powerpc/cpu/mpc512x/start.S
  39. 1 1
      arch/powerpc/cpu/mpc512x/u-boot.lds
  40. 2 2
      arch/powerpc/cpu/mpc5xx/start.S
  41. 1 1
      arch/powerpc/cpu/mpc5xx/u-boot.lds
  42. 2 2
      arch/powerpc/cpu/mpc5xxx/start.S
  43. 1 1
      arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds
  44. 1 1
      arch/powerpc/cpu/mpc5xxx/u-boot.lds
  45. 2 2
      arch/powerpc/cpu/mpc8220/start.S
  46. 1 1
      arch/powerpc/cpu/mpc8220/u-boot.lds
  47. 2 2
      arch/powerpc/cpu/mpc824x/start.S
  48. 1 1
      arch/powerpc/cpu/mpc824x/u-boot.lds
  49. 2 2
      arch/powerpc/cpu/mpc8260/start.S
  50. 1 1
      arch/powerpc/cpu/mpc8260/u-boot.lds
  51. 2 2
      arch/powerpc/cpu/mpc83xx/start.S
  52. 1 1
      arch/powerpc/cpu/mpc83xx/u-boot.lds
  53. 2 2
      arch/powerpc/cpu/mpc85xx/start.S
  54. 1 1
      arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
  55. 1 1
      arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds
  56. 1 1
      arch/powerpc/cpu/mpc85xx/u-boot.lds
  57. 2 2
      arch/powerpc/cpu/mpc86xx/start.S
  58. 1 1
      arch/powerpc/cpu/mpc86xx/u-boot.lds
  59. 2 2
      arch/powerpc/cpu/mpc8xx/start.S
  60. 2 2
      arch/powerpc/cpu/ppc4xx/start.S
  61. 1 1
      arch/powerpc/cpu/ppc4xx/u-boot.lds
  62. 2 2
      arch/powerpc/lib/board.c
  63. 1 1
      arch/sh/cpu/sh2/u-boot.lds
  64. 1 1
      arch/sh/cpu/sh3/u-boot.lds
  65. 1 1
      arch/sh/cpu/sh4/u-boot.lds
  66. 1 1
      board/BuS/EB+MCF-EV123/u-boot.lds
  67. 1 1
      board/LEOX/elpt860/u-boot.lds
  68. 1 1
      board/LEOX/elpt860/u-boot.lds.debug
  69. 1 1
      board/RPXClassic/u-boot.lds
  70. 1 1
      board/RPXClassic/u-boot.lds.debug
  71. 1 1
      board/RPXlite/u-boot.lds
  72. 1 1
      board/RPXlite/u-boot.lds.debug
  73. 1 1
      board/RPXlite_dw/u-boot.lds
  74. 1 1
      board/RPXlite_dw/u-boot.lds.debug
  75. 1 1
      board/RRvision/u-boot.lds
  76. 1 1
      board/actux1/u-boot.lds
  77. 1 1
      board/actux2/u-boot.lds
  78. 1 1
      board/actux3/u-boot.lds
  79. 1 1
      board/adder/u-boot.lds
  80. 1 1
      board/altera/nios2-generic/u-boot.lds
  81. 1 1
      board/amcc/acadia/u-boot-nand.lds
  82. 1 1
      board/amcc/bamboo/u-boot-nand.lds
  83. 1 1
      board/amcc/canyonlands/u-boot-nand.lds
  84. 1 1
      board/amcc/kilauea/u-boot-nand.lds
  85. 1 1
      board/amcc/sequoia/u-boot-nand.lds
  86. 1 1
      board/amcc/sequoia/u-boot-ram.lds
  87. 1 1
      board/amirix/ap1000/u-boot.lds
  88. 1 1
      board/astro/mcf5373l/u-boot.lds
  89. 1 1
      board/atmel/atngw100/u-boot.lds
  90. 1 1
      board/atmel/atstk1000/u-boot.lds
  91. 1 1
      board/c2mon/u-boot.lds
  92. 1 1
      board/c2mon/u-boot.lds.debug
  93. 1 1
      board/cm5200/u-boot.lds
  94. 1 1
      board/cobra5272/u-boot.lds
  95. 1 1
      board/cogent/u-boot.lds
  96. 1 1
      board/cogent/u-boot.lds.debug
  97. 1 1
      board/cray/L1/u-boot.lds.debug
  98. 1 1
      board/dave/PPChameleonEVB/u-boot.lds
  99. 1 1
      board/earthlcd/favr-32-ezkit/u-boot.lds
  100. 1 1
      board/eltec/mhpc/u-boot.lds

+ 1 - 1
arch/arm/cpu/arm1136/start.S

@@ -102,7 +102,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm1136/u-boot.lds

@@ -76,7 +76,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm1176/start.S

@@ -121,7 +121,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 /* IRQ stack memory (calculated at run-time) + 8 bytes */
 .globl IRQ_STACK_START_IN

+ 1 - 1
arch/arm/cpu/arm1176/u-boot.lds

@@ -65,7 +65,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm720t/start.S

@@ -91,7 +91,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm720t/u-boot.lds

@@ -66,7 +66,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm920t/ep93xx/u-boot.lds

@@ -55,5 +55,5 @@ SECTIONS
 	. = ALIGN(4);
 	__bss_start = .;
 	.bss : { *(.bss) }
-	_end = .;
+	__bss_end__ = .;
 }

+ 1 - 1
arch/arm/cpu/arm920t/start.S

@@ -87,7 +87,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm920t/u-boot.lds

@@ -75,7 +75,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm925t/start.S

@@ -97,7 +97,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm925t/u-boot.lds

@@ -70,7 +70,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm926ejs/start.S

@@ -131,7 +131,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm926ejs/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm946es/start.S

@@ -103,7 +103,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm946es/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/arm_intcm/start.S

@@ -99,7 +99,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/arm_intcm/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/armv7/start.S

@@ -79,7 +79,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/armv7/u-boot.lds

@@ -70,7 +70,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/ixp/start.S

@@ -110,7 +110,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/ixp/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/lh7a40x/start.S

@@ -87,7 +87,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/lh7a40x/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/pxa/start.S

@@ -104,7 +104,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/pxa/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/s3c44b0/start.S

@@ -78,7 +78,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/s3c44b0/u-boot.lds

@@ -67,7 +67,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/arm/cpu/sa1100/start.S

@@ -88,7 +88,7 @@ _bss_start_ofs:
 
 .globl _bss_end_ofs
 _bss_end_ofs:
-	.word _end - _start
+	.word __bss_end__ - _start
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */

+ 1 - 1
arch/arm/cpu/sa1100/u-boot.lds

@@ -70,7 +70,7 @@ SECTIONS
 		__bss_start = .;
 		*(.bss)
 		 . = ALIGN(4);
-		_end = .;
+		__bss_end__ = .;
 	}
 
 	/DISCARD/ : { *(.dynstr*) }

+ 1 - 1
arch/avr32/cpu/start.S

@@ -244,7 +244,7 @@ relocate_code:
 	/* zero out .bss */
 	mov	r0, 0
 	mov	r1, 0
-	lda.w	r9, _end
+	lda.w	r9, __bss_end__
 	sub	r9, r8
 1:	st.d	r10++, r0
 	sub	r9, 8

+ 1 - 1
arch/avr32/include/asm/sections.h

@@ -27,6 +27,6 @@
 extern char _text[], _etext[];
 extern char _data[], __data_lma[], _edata[], __edata_lma[];
 extern char __got_start[], __got_lma[], __got_end[];
-extern char _end[];
+extern char __bss_end__[];
 
 #endif /* __ASM_AVR32_SECTIONS_H */

+ 2 - 2
arch/avr32/lib/board.c

@@ -118,7 +118,7 @@ static int display_banner (void)
 	printf ("\n\n%s\n\n", version_string);
 	printf ("U-Boot code: %08lx -> %08lx  data: %08lx -> %08lx\n",
 		(unsigned long)_text, (unsigned long)_etext,
-		(unsigned long)_data, (unsigned long)_end);
+		(unsigned long)_data, (unsigned long)__bss_end__);
 	return 0;
 }
 
@@ -190,7 +190,7 @@ void board_init_f(ulong board_type)
 	 *  - stack
 	 */
 	addr = CONFIG_SYS_SDRAM_BASE + sdram_size;
-	monitor_len = _end - _text;
+	monitor_len = __bss_end__ - _text;
 
 	/*
 	 * Reserve memory for u-boot code, data and bss.

+ 2 - 2
arch/m68k/lib/board.c

@@ -76,7 +76,7 @@ static char *failed = "*** failed ***\n";
 #include <environment.h>
 
 extern ulong __init_end;
-extern ulong _end;
+extern ulong __bss_end__;
 
 extern	void timer_init(void);
 
@@ -252,7 +252,7 @@ board_init_f (ulong bootflag)
 	 *	- monitor code
 	 *	- board info struct
 	 */
-	len = (ulong)&_end - CONFIG_SYS_MONITOR_BASE;
+	len = (ulong)&__bss_end__ - CONFIG_SYS_MONITOR_BASE;
 
 	addr = CONFIG_SYS_SDRAM_BASE + gd->ram_size;
 

+ 3 - 3
arch/nios2/cpu/start.S

@@ -100,12 +100,12 @@ _cur:	movhi	r5, %hi(_cur - _start)
 3:
 
 	/* ZERO BSS/SBSS -- bss and sbss are assumed to be adjacent
-	 * and between __bss_start and _end.
+	 * and between __bss_start and __bss_end__.
 	 */
 	 movhi	r5, %hi(__bss_start)
 	 ori	r5, r5, %lo(__bss_start)
-	 movhi	r6, %hi(_end)
-	 ori	r6, r6, %lo(_end)
+	 movhi	r6, %hi(__bss_end__)
+	 ori	r6, r6, %lo(__bss_end__)
 	 beq	r5, r6, 5f
 
 4:	stwio	r0, 0(r5)

+ 1 - 1
arch/nios2/cpu/u-boot.lds

@@ -103,7 +103,7 @@ SECTIONS
 	  *(.scommon)
 	}
 	. = ALIGN(4);
-	_end = .;
+	__bss_end__ = .;
 	PROVIDE (end = .);
 
 	/* DEBUG -- symbol table, string table, etc. etc.

+ 2 - 2
arch/powerpc/cpu/74xx_7xx/start.S

@@ -77,7 +77,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -722,7 +722,7 @@ in_ram:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/74xx_7xx/u-boot.lds

@@ -87,6 +87,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc512x/start.S

@@ -79,7 +79,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -626,7 +626,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc512x/u-boot.lds

@@ -82,7 +82,7 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }
 ENTRY(_start)

+ 2 - 2
arch/powerpc/cpu/mpc5xx/start.S

@@ -70,7 +70,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -466,7 +466,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 	cmplw	0, r3, r4
 	beq	6f
 

+ 1 - 1
arch/powerpc/cpu/mpc5xx/u-boot.lds

@@ -91,7 +91,7 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
   . = env_start;
   .ppcenv :

+ 2 - 2
arch/powerpc/cpu/mpc5xxx/start.S

@@ -70,7 +70,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -681,7 +681,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds

@@ -91,6 +91,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
arch/powerpc/cpu/mpc5xxx/u-boot.lds

@@ -85,6 +85,6 @@ SECTIONS
    *(.sbss*)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc8220/start.S

@@ -69,7 +69,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -654,7 +654,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc8220/u-boot.lds

@@ -84,6 +84,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc824x/start.S

@@ -77,7 +77,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 #if defined(CONFIG_FADS)
 	GOT_ENTRY(environment)
@@ -596,7 +596,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc824x/u-boot.lds

@@ -85,6 +85,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc8260/start.S

@@ -70,7 +70,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 #if defined(CONFIG_HYMOD)
 	GOT_ENTRY(environment)
@@ -927,7 +927,7 @@ clear_bss:
 	 */
 	lwz	r4,GOT(environment)
 #else
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 #endif
 
 	cmplw	0, r3, r4

+ 1 - 1
arch/powerpc/cpu/mpc8260/u-boot.lds

@@ -84,6 +84,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc83xx/start.S

@@ -72,7 +72,7 @@
 	START_GOT
 	GOT_ENTRY(_GOT2_TABLE_)
 	GOT_ENTRY(__bss_start)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 
 #ifndef CONFIG_NAND_SPL
 	GOT_ENTRY(_FIXUP_TABLE_)
@@ -977,7 +977,7 @@ clear_bss:
 	 */
 	lwz	r4,GOT(environment)
 #else
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 #endif
 
 	cmplw	0, r3, r4

+ 1 - 1
arch/powerpc/cpu/mpc83xx/u-boot.lds

@@ -83,7 +83,7 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }
 ENTRY(_start)

+ 2 - 2
arch/powerpc/cpu/mpc85xx/start.S

@@ -66,7 +66,7 @@
 #endif
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -1050,7 +1050,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0,r3,r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds

@@ -101,6 +101,6 @@ SECTIONS
   } :bss
 
   . = ALIGN(4);
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds

@@ -62,6 +62,6 @@ SECTIONS
 		*(.sbss*)
 		*(.bss*)
 	}
-	_end = .;
+	__bss_end__ = .;
 }
 ASSERT(__init_end <= 0xfff00ffc, "NAND bootstrap too big");

+ 1 - 1
arch/powerpc/cpu/mpc85xx/u-boot.lds

@@ -125,6 +125,6 @@ SECTIONS
   } :bss
 
   . = ALIGN(4);
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc86xx/start.S

@@ -66,7 +66,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -740,7 +740,7 @@ in_ram:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 1 - 1
arch/powerpc/cpu/mpc86xx/u-boot.lds

@@ -88,6 +88,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/cpu/mpc8xx/start.S

@@ -77,7 +77,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 
@@ -597,7 +597,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	6f

+ 2 - 2
arch/powerpc/cpu/ppc4xx/start.S

@@ -248,7 +248,7 @@
 	GOT_ENTRY(transfer_to_handler)
 
 	GOT_ENTRY(__init_end)
-	GOT_ENTRY(_end)
+	GOT_ENTRY(__bss_end__)
 	GOT_ENTRY(__bss_start)
 	END_GOT
 #endif /* CONFIG_NAND_SPL */
@@ -1624,7 +1624,7 @@ clear_bss:
 	 * Now clear BSS segment
 	 */
 	lwz	r3,GOT(__bss_start)
-	lwz	r4,GOT(_end)
+	lwz	r4,GOT(__bss_end__)
 
 	cmplw	0, r3, r4
 	beq	7f

+ 1 - 1
arch/powerpc/cpu/ppc4xx/u-boot.lds

@@ -140,6 +140,6 @@ SECTIONS
   } :bss
 
   . = ALIGN(4);
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 2 - 2
arch/powerpc/lib/board.c

@@ -123,7 +123,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #endif
 
 extern ulong __init_end;
-extern ulong _end;
+extern ulong __bss_end__;
 ulong monitor_flash_len;
 
 #if defined(CONFIG_CMD_BEDBUG)
@@ -403,7 +403,7 @@ void board_init_f (ulong bootflag)
 	 *  - monitor code
 	 *  - board info struct
 	 */
-	len = (ulong)&_end - CONFIG_SYS_MONITOR_BASE;
+	len = (ulong)&__bss_end__ - CONFIG_SYS_MONITOR_BASE;
 
 	/*
 	 * Subtract specified amount of memory to hide so that it won't

+ 1 - 1
arch/sh/cpu/sh2/u-boot.lds

@@ -91,5 +91,5 @@ SECTIONS
 	}
 	PROVIDE (bss_end = .);
 
-	PROVIDE (_end = .);
+	PROVIDE (__bss_end__ = .);
 }

+ 1 - 1
arch/sh/cpu/sh3/u-boot.lds

@@ -98,5 +98,5 @@ SECTIONS
 	}
 	PROVIDE (bss_end = .);
 
-	PROVIDE (_end = .);
+	PROVIDE (__bss_end__ = .);
 }

+ 1 - 1
arch/sh/cpu/sh4/u-boot.lds

@@ -95,5 +95,5 @@ SECTIONS
 	}
 	PROVIDE (bss_end = .);
 
-	PROVIDE (_end = .);
+	PROVIDE (__bss_end__ = .);
 }

+ 1 - 1
board/BuS/EB+MCF-EV123/u-boot.lds

@@ -134,6 +134,6 @@ SECTIONS
    . = ALIGN(4);
    _ebss = .;
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/LEOX/elpt860/u-boot.lds

@@ -109,6 +109,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/LEOX/elpt860/u-boot.lds.debug

@@ -134,6 +134,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXClassic/u-boot.lds

@@ -90,6 +90,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXClassic/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXlite/u-boot.lds

@@ -90,6 +90,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXlite/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXlite_dw/u-boot.lds

@@ -90,6 +90,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RPXlite_dw/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/RRvision/u-boot.lds

@@ -95,6 +95,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/actux1/u-boot.lds

@@ -66,5 +66,5 @@ SECTIONS
 		*(.bss)
 		. = ALIGN(4);
 	}
-	_end =.;
+	__bss_end__ =.;
 }

+ 1 - 1
board/actux2/u-boot.lds

@@ -71,5 +71,5 @@ SECTIONS
 		*(.bss)
 		. = ALIGN(4);
 	}
-	_end =.;
+	__bss_end__ =.;
 }

+ 1 - 1
board/actux3/u-boot.lds

@@ -71,5 +71,5 @@ SECTIONS
 		*(.bss)
 		. = ALIGN(4);
 	}
-	_end =.;
+	__bss_end__ =.;
 }

+ 1 - 1
board/adder/u-boot.lds

@@ -86,7 +86,7 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }
 ENTRY(_start)

+ 1 - 1
board/altera/nios2-generic/u-boot.lds

@@ -104,7 +104,7 @@ SECTIONS
 	  *(.scommon)
 	}
 	. = ALIGN(4);
-	_end = .;
+	__bss_end__ = .;
 	PROVIDE (end = .);
 
 	/* DEBUG -- symbol table, string table, etc. etc.

+ 1 - 1
board/amcc/acadia/u-boot-nand.lds

@@ -98,6 +98,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amcc/bamboo/u-boot-nand.lds

@@ -99,6 +99,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amcc/canyonlands/u-boot-nand.lds

@@ -99,6 +99,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amcc/kilauea/u-boot-nand.lds

@@ -98,6 +98,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amcc/sequoia/u-boot-nand.lds

@@ -99,6 +99,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amcc/sequoia/u-boot-ram.lds

@@ -90,6 +90,6 @@ SECTIONS
    . = ALIGN(4);
   }
 
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/amirix/ap1000/u-boot.lds

@@ -90,6 +90,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/astro/mcf5373l/u-boot.lds

@@ -137,6 +137,6 @@ SECTIONS
    . = ALIGN(4);
    _ebss = .;
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/atmel/atngw100/u-boot.lds

@@ -68,5 +68,5 @@ SECTIONS
 		*(.bss.*)
 	}
 	. = ALIGN(8);
-	_end = .;
+	__bss_end__ = .;
 }

+ 1 - 1
board/atmel/atstk1000/u-boot.lds

@@ -68,5 +68,5 @@ SECTIONS
 		*(.bss.*)
 	}
 	. = ALIGN(8);
-	_end = .;
+	__bss_end__ = .;
 }

+ 1 - 1
board/c2mon/u-boot.lds

@@ -98,6 +98,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/c2mon/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/cm5200/u-boot.lds

@@ -115,6 +115,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/cobra5272/u-boot.lds

@@ -137,6 +137,6 @@ SECTIONS
    . = ALIGN(4);
    _ebss = .;
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/cogent/u-boot.lds

@@ -94,6 +94,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/cogent/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/cray/L1/u-boot.lds.debug

@@ -130,6 +130,6 @@ SECTIONS
    *(.bss)
    *(COMMON)
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/dave/PPChameleonEVB/u-boot.lds

@@ -123,6 +123,6 @@ SECTIONS
   } :bss
 
   . = ALIGN(4);
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

+ 1 - 1
board/earthlcd/favr-32-ezkit/u-boot.lds

@@ -66,5 +66,5 @@ SECTIONS
 		*(.bss.*)
 	}
 	. = ALIGN(8);
-	_end = .;
+	__bss_end__ = .;
 }

+ 1 - 1
board/eltec/mhpc/u-boot.lds

@@ -90,6 +90,6 @@ SECTIONS
    *(COMMON)
    . = ALIGN(4);
   }
-  _end = . ;
+  __bss_end__ = . ;
   PROVIDE (end = .);
 }

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels