This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi *
I have been able to successfully make fully-functional
cross-compiler (m68k-motorola-elf) using the standard procedures.
My host is Digital Unix having OS version OSF-4.0D. The problem i
am getting is generating executable for m68k target on my host machine.
To test the gcc i have used a simple test.c file containing :
/* test.c */
int main()
{ return 40; }
/* End of test.c */
Now if i try to create an executable using
gcc test.c
I get the following error message :
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/bin/ld: warning:
cannot find entry symbol _start; defaulting to 0000000080000074
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o: In
function `start':
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x2):
undefined reference to `__stack'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x58):
undefined reference to `__FINI_SECTION__'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x38):
undefined reference to `hardware_init_hook'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x48):
undefined reference to `software_init_hook'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x5e):
undefined reference to `atexit'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x64):
undefined reference to `__INIT_SECTION__'
/aries_1/tools/m68kElf/digital/niop/m68k-motorola-elf/lib/crt0.o(.text+0x84):
undefined reference to `exit'
/aries_1/tools/m68kElf/digital/niop/lib/gcc-lib/m68k-motorola-elf/2.95.3/libgcc.a(__main.o):
In function `__do_global_ctors':
/tmp/gccBuild/gcc/.././../gcc-2.95.3/gcc/libgcc2.c(.text+0x3a):
undefined reference to `atexit'
collect2: ld returned 1 exit status
I am using gcc-2.95.3 , binutils-2.11.2 and newlib-1.9.0
Any help would be greatly appreciated.
thanxs in advance
arvind
begin:vcard n:Tiwari;Arvind x-mozilla-html:FALSE org:Centre for Development of Telematics (C-DoT) adr:;;;;;; version:2.1 email;internet:arvind@cdotd.ernet.in title:Research Engineer x-mozilla-cpt:;12160 fn:Arvind Tiwari end:vcard
------ 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] |