Newlib complains of undefined references to __bss_start__, __bss_end__ & __end__

Carlos de Sa desa.carlos@gmail.com
Tue Aug 7 14:00:00 GMT 2012


Hi,

I'm trying to build an arm-eabi toolchain using gcc 4.7.1, binutils
2.22 and newlib 1.20. This appears to build sucessfully. However when
testing a simple c program it complains -

crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__bss_start__'
crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__bss_end__'
crosstool-ng-1.15.3/.build/src/newlib-1.20.0/newlib/libc/sys/arm/crt0.S:406:
error: undefined reference to '__end__'
collect2: error: ld returned 1 exit status

>From the above it appears that the generated toolchain in
~/x-tools/arm-unknown-eabi/ still has references to the build
directory in crosstool-ng-1.15.3/.build also also undefined linker
symbols?

any idea how to solve this?

TIA.

Regards
Carlos

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list