Hello All: First, than you all for the answers on my previous question about a C union not working for IO access. I'm now compiling some programs with GCC 3.4.3 and newlib 1.12. I've download the source packages from http://rod.info/arm.html and used his build script to build the toolchain. All went very smooth. I've been able to compile FreeRTOS for LPC2106 and tried to blink some LEDs (hence the question about the C union), but when I try to use any code from the newlib, I get the following warning: arm-elf-ld: Warning: /opt/arm/lib/gcc/arm-elf/3.4.3//libgcc.a(_udivsi3.o) does not support interworking, whereas test2.prg does And a little but further: arm-elf-ld: first occurrence: /opt/arm/lib/gcc/arm-elf/3.4.3/../../../../arm-elf/lib//libc.a(mallocr.o): thumb call to arm I checked the build script against the GNU ARM page and they both build newlib with the --enable-interwork --enable-multilib options. So I though I had interwork enabled. The only google reference I got ( http://www.codesourcery.com/archives/arm-gnu/msg00030.html ) tells this: "If you do require thumb interworking you will need to recompile both the C library (newlib) and compiler support library (libgcc) with interworking support." The build scrip and GNU ARM both build GCC with the --enable-interwork --enable-multilib --with-newlib options. So I'm a bit confused: Is this anewlib problem, a GCC problem or a compilation problem of my app? Thanks a lot! -- This is Linux country. On a quiet night, you can hear Windows reboot. Leonardo Pereira Santos Engenheiro de Projetos PD3 Tecnologia av. ParĂ¡ 330/202 (51) 3337 1237
Message
Newlib problem
2005-04-04 by Leonardo Santos
Attachments
- No local attachments were found for this message.