From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 4 Nov 2011 19:20:10 -0400 Subject: [U-Boot] nds32: toolchains for building ? In-Reply-To: <201111041822.33640.vapier@gentoo.org> References: <201111031358.54366.vapier@gentoo.org> <201111041822.33640.vapier@gentoo.org> Message-ID: <201111041920.11508.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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