
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