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] |
I'm trying to build a cross compiler to generate code for a simple 68340 evaluation system. Whne linking a hello world program I get the following errors [bobstaff@snooker 340]$ m68k-coff-gcc hello.c -L /usr/lib/gcc-lib/m68k-coff/2.95.2 -lgcc /usr/m68k-coff/lib/crt0.o:../../../../src/libgloss/m68k/crt0.S:16: undefined reference to `hardware_init_hook' /usr/m68k-coff/lib/crt0.o(.text+0x48):../../../../src/libgloss/m68k/crt0.S: undefined reference to `software_init_hook' /usr/m68k-coff/lib/crt0.o(.text+0x58):../../../../src/libgloss/m68k/crt0.S: undefined reference to `__FINI_SECTION__' /usr/m68k-coff/lib/crt0.o(.text+0x5e):../../../../src/libgloss/m68k/crt0.S: undefined reference to `atexit' /usr/m68k-coff/lib/crt0.o(.text+0x64):../../../../src/libgloss/m68k/crt0.S: undefined reference to `__INIT_SECTION__' /tmp/ccrQMMiN.o(.text+0x1e):hello.c: undefined reference to `printf' /usr/lib/gcc-lib/m68k-coff/2.95.2/libgcc.a(_exit.o): In function `exit': /home/bobstaff/340/b-m68k-coff/gcc/../../src/gcc/libgcc2.c(.text+0x12): undefined reference to `_cleanup' /home/bobstaff/340/b-m68k-coff/gcc/../../src/gcc/libgcc2.c(.text+0x1a): undefined reference to `_exit' collect2: ld returned 1 exit status I believe I probably need to provide some board support functions to get rid of these errors. Can anybody point me in the direction of some docs on the web that explain what functions I need to write and what they should do. Alternatively are these functions available somewhere. I'm using gcc-2.95.2,binutils-2.9.1 and newlib-1.8.2, running on a Red HAT 6.1 linux host. Thanks Bob Stafford ------ 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] |