I've lost the recipe for building binutils/mspgcc. The shell script I've used for the past few years no longer produces a working toolchain. AFAIK, absolutely nothing has changed. But after building binutils and mspgcc on a new machine I'm now getting errors like this:
msp430-gcc -g -O2 -mmcu=msp430x149 -Wa,-ahld=main.lst -o main.elf main.c //home/grante/msp430/gnu/bin/../lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_copy_data.o): In function `__do_copy_data': /home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x2): undefined reference to `__data_size' /home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x8): undefined reference to `__data_load_start' //home/grante/msp430/gnu/bin/../lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_clear_bss.o): In function `__do_clear_bss': /home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x2): undefined reference to `__bss_size' make: *** [main.elf] Error 1 According to http://www.nabble.com/linking-problems-in-linux-%28undefined-symbols%29-td18834672.html those undefined symbols are fixed by this patch: packaging/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch Except they're not. There's nothing in that patch that adds the undefined symbols. Rather, those symbols appear to be added by binutils-ld_scripts.patch, but I've not been able to get that patch to apply to binutils 2.17. Is there a list somewhere of what patches you need in what order to build what versions of binutils? -- Grant Edwards grante Yow! If elected, Zippy at pledges to each and every visi.com American a 55-year-old houseboy ...
