[U-Boot] nds32: toolchains for building ?

Mike Frysinger vapier at gentoo.org
Sat Nov 5 00:20:10 CET 2011


On Friday 04 November 2011 18:22:32 Mike Frysinger wrote:
> On Friday 04 November 2011 04:24:51 馬克泡 wrote:
> > It's pity that only you can found the toolchain with full source from
> > public is very old.
> > I can give you the url as follows.
> > http://osdk.andestech.com/
> 
> yes, i d/l-ed that monster of a .rar (which contains .tar.gz which
> themselves contain .tar.gz .....), but the linker in there segfaults for
> me :(

seems to partially be due to the nds32 u-boot.lds not handling .data.rel 
sections which a few objects have, so the linker just arbitrarily appends 
them.  you should probably tweak the linker script, perhaps like so:

--- a/arch/nds32/cpu/n1213/u-boot.lds
+++ b/arch/nds32/cpu/n1213/u-boot.lds
@@ -41,7 +41,7 @@ SECTIONS
 	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
 	. = ALIGN(4);
-	.data : { *(.data) }
+	.data : { *(.data*) }
 
 	. = ALIGN(4);
 

fixing that though just gets me a diff bug:
nds32le-linux-ld: BFD 2.16.91 internal error, aborting at ../../bfd/section.c 
line 1229 in bfd_map_over_sections
nds32le-linux-ld: Please report this bug.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111104/a33bc1c3/attachment.pgp 


More information about the U-Boot mailing list