This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newlib and -mthumb-interwork


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.
Here is me linker command:

D:\cygwin\usr\local\bin\arm-elf-ld -g -v -T ldscript -O3 -N crt0.o main.o16
D:\cygwin\usr\local\arm-elf\lib\thumb\libc.a -o wearpos.elf
GNU ld version 2.11.2 (with BFD 2.11.2)

What's wrong?
Thanks for any hint

Alex



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]