Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gcc] Thumb Interworking


  • To: Rushikesh Shingnapurkar <rushikeshs@xxxxxxxxxxxxxxxxxxx>
  • Subject: Re: [arm-gcc] Thumb Interworking
  • From: Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
  • Date: Fri, 24 Jun 2005 13:40:10 +0100

Rushikesh Shingnapurkar wrote:
Dear Sir,
I am trying to use THUMB mode for a single file. Compilation is done with "-mthumb" option & other files are compiled with "-mthumb-interwork" option.
But, while linking it gives following warning.
*ld -cref -Map map.txt -S -T link.txt -lc -lm -lgcc *ld: Warning: c:\toolchain\arm-none-elf\bin/../lib\libc.a(memcpy.o) does not support interworking, whereas out.o does Can you help me to avoid this warning ?

It looks like you're using a bespoke linker script and invoking the linker explicitly. Am I correct in guessing that the error remains, even when the -mthumb only object file is not being linked in?

How are you setting up the library search paths? In particular, it seems that you are not pointing to the interworking libraries. GCC does this automatically when you use gcc to link. Perhaps you can use the -v option to gcc to see how it drives the linker in situations similar to your own -- the link command will, confusingly, be a tool call 'collect2'.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk