This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

How to generate the LIBGCC.A for mc68000


Hello,

I am using gcc-3.1 and I try to generate a cross-compiler version for
mc68000 on a Pentium II under Linux.

I had installed the binutils-2.15 and I had successfully configured and
compiled gcc-3.1 sources with the following arguments :

gcc-3.1/configure \
--prefix=/home/cross-compiler/m68k \
--target=m68k-linux \
--enable-languages=c \
--nofp


After some manuel patches ( compilation of crti.s and crtn.s and remove
of -lc line in the Makefile ),
The result is a full gcc compiler tools in /home/cross-compiler/m68k
including the libgcc.a library.

The trouble is, when I try to use this compiler with option -m68000 to
compile my Linux kernel ( witch has been modified to support the m68k
architecture without MMU), the compiler generate some implicit calls to
simulate
arithmetics operations ( witch are not supported by the mc68000 ).
And those functions are not included in the libgcc.a as they are supposed to
be ( I found this information on a forum).

What did I do that was not correct or did I miss in installing my GCC
compiler ?

Here is the list of unreferenced functions :
__udivsi3
__umodsi3
__divsi3
__modsi3
__mulsi3


Thank you for your answer.

Pascal Chaperon


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