Re: [arm-gnu] libc.a does not support interworking... ?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] libc.a does not support interworking... ?!?



On Monday 06 September 2004 13:15, Patrick Bellasi wrote:
> Hello,
>  I'm working on a project that was first developed using your GNU
> Toolchains for ARM processors version 3.0.1
>
> Right now I've downloaded your new Tools version 3.4.0 and I'm unable to
> cleany compile sources with that command:
>
> derkling@darkstar microarm $ arm-none-elf-gcc -mthumb-interwork fact.c
> -static -o fact -B$ARM_HOME/lib/ -B$ARM_GCCLIB/ -I$ARM_HOME/include
> -I$ARM_GCCLIB/include
>
> since I get that WARNING:
>
> /home/derkling/Tesi/Software/ARM/bin/../lib/gcc/arm-none-elf/3.4.0/../../..
>/../arm-none-elf/bin/ld: Warning:
> /home/derkling/Tesi/Software/ARM/bin/../lib/gcc/arm-none-elf/3.4.0/../../..
>/../arm-none-elf/lib/libc.a(atexit.o) does not support interworking, whereas
> fact does
>
> what that means? I've to use the generated code into a behavioral simulator
> so I need only a "valid code" and not a code that can run on my PC... it
> that warning a problem?

The C runtime library in the CodeSourcery package is not interworking safe. 
ie. the supplied libc.a cannot be safely used from both arm and thumb code.

You requested thumb interworking safe code on the commandline. The warning 
tells you this may not work because libc.a doesn't support it..

If you do require thumb interworking you will need to recompile both the C 
library (newlib) and compiler support library (libgcc) with interworking 
support.

Paul