Problem Generating Executable.
Arvind Tiwari
arvind@cdotd.ernet.in
Tue Jul 31 01:29:00 GMT 2001
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
More information about the crossgcc
mailing list