This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: newlib and -mthumb-interwork
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- To: wearpos <wearpos at ife dot ee dot ethz dot ch>
- Cc: newlib at sourceware dot cygnus dot com
- Date: Tue, 11 Dec 2001 18:05:12 -0500
- Subject: Re: newlib and -mthumb-interwork
- Organization: Red Hat Inc.
- References: <001301c18190$ba888f30$841d8481@ee.ethz.ch>
wearpos wrote:
>
> Hi
>
> I have the same problem as discussed already on this list:
> http://sources.redhat.com/ml/newlib/2001/msg00237.html
>
> I read this thread but didn't find an answer to my question. But basicaly my
> problem is realy the same.
>
> I wanna mix arm-32-bit code with arma-16-bit code.
>
> I built newest gcc version 3.0.2 using together with newlib 1.9
>
> I configured newlib using --target=arm-elf. After make there were two libs
> ..../arm-elf/lib/libc.a and
> .../arm-elf/lib/thumb/libc.a
>
> but if i try to link using on of these libs linker tells me:
>
> /usr/local/bin/arm-elf-ld: Warning: memcpy.o does not support interworking,
> whereas wearpos.elf does not.
>
> In the posting mentioned above Jeff J. worte to call gcc
> with -print-multi-lib.
>
> H:\Semesterarbeit\Software\wearpos>d:\cygwin\usr\local\bin\arm-elf-gcc -prin
> t-multi-lib
> .;
> thumb;@mthumb
>
> but what the hell dows this mean.
This means that the compiler supports two multilibs. One default options and
the other with the -mthumb option specified. Note, no thumb-interwork multilib
support.
The arm-elf gcc compiler which was shipped as part of the Cygnus progressive
release
has a lot more multilibs, including thumb-interwork. I suggest you contact the
gcc
mailing list to see why thumb-interwork is not included in your particular
compiler.
-- Jeff J.