Skip to contentSkip to conversation

Add _end symbol in SMDK6410 link script

U-Boot New seedshope 1 participant 2 messages May 1, 2011

lore
Share & tools
lore

seedshope

author
#0 lore raw

Since we rename _end to __bss_end (commit: 44c6e6591cb) So we have add the the end symbol of u-boot image.

The patch fix SMDK6400 build error. the error information as foolowing:

pat.o -L /usr/local/arm/4.3.1-eabi-armv6/usr/bin-ccache/../lib/gcc/arm-samsung-linux-gnueabi/4.3.1 -lgcc -Map u-boot.map -o u-boot arch/arm/cpu/arm1176/start.o: In function `_end_ofs':
/home/seedshope/work/bootloader/u-boot/arch/arm/cpu/arm1176/start.S:61: undefined reference to `_end'
make: *** [/home/seedshope/work/bootloader/u-boot_obj/smdk6400/u-boot] Error 1

author
#1 lore raw

PATCH 1/1 Add _end for the end of u-boot image for SMDK6400

From: seedshope <[email protected]>

Since we rename _end to __bss_end__, But we need add _end symbol for the end of u-boot image.

nand_spl/board/samsung/smdk6400/u-boot.lds +2 -0
index 0153e0e..23c9913 100644
@@ -67,6 +67,8 @@ SECTIONS
 	*(.dynsym)
 	}
 
+	_end = .;	
+
 	.bss __rel_dyn_start (OVERLAY) : {
 	__bss_start = .;
 	*(.bss)
Signature · 1 line
1.7.1