This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
link problem (powerpc-elf)
- To: newlib at sourceware dot cygnus dot com
- Subject: link problem (powerpc-elf)
- From: "Michael Morrison" <mmorrison at stoneflynetworks dot com>
- Date: Fri, 22 Jun 2001 13:06:47 -0700
Hi Folks,
I recently installed GNU cross toolchain for powerpc for both linux and
cygwin hosts.
When I compile/link a simple "hello world" program, I get the following:
[mike@tux powerpc]$ powerpc-elf-gcc main.c -o main
/opt/powerpc/lib/gcc-lib/powerpc-elf/3.0/../../../../powerpc-elf/bin/ld:
warning: cannot find entry symbol _start; defaulting to 01800074
/tmp/cctRepxT.o: In function `main':
/tmp/cctRepxT.o(.text+0x20): undefined reference to `printf'
collect2: ld returned 1 exit status
I have: gcc-3.0, binutils-2.11 and newlib 1.9.0
I also have these tools installed for an arm target and don't have any
problems with it.
Any clues on where I can begin looking?
THX
mike