This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi. I'm trying to build a cross compiler on a Red Hat 6.1 (i686) system for a custom MC68000 board (with a custom kernel). I didn't know what target to compile for, so I chose m68k-coff. Can anybody tell me what coff means? I'm using: Binutils-2.9.1, Gcc-2.95.2 and Newlib-1.8.2. I compiled and installed the cross compiler using one-tree-1.6.sh and build-cross.sh described in the CrossGCC FAQ. I didn't have any problems compiling or installing the cross compiler, but I can't link compiled c programs. I tried to compile and link this simple test program: int main() { unsigned int x, y; for(x=1; x<10; x++) y = 100 / x; return 0; } First I did a "m68k-coff-gcc -c -mc68000 test.c". Then I did a "m68k-coff-ld test.o", I got these error messages: test.o(.text+0x6):test.c: undefined reference to `__main' test.o(.text+0x24):test.c: undefined reference to `__udivsi3' When I tried to compile the test program for the 68020 I didn't get the last error message (`__udivsi3'). Do I have to do anything special when making a cross compiler for the 68000? Hope you can help me out here! Kim Jorgensen ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |