delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/26/16:14:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A71E6C5.3F8EAD70@home.com>
Date: Fri, 26 Jan 2001 14:06:13 -0700
From: Stephen Smith <ischis2 AT home DOT com>
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Linker failure under cygwin

I built a cross compiler for the motorola power pc according to instructions that I received from Mumit Khan
(in Wisconsin).  According to the logs, the compiler installed correctly.

As the fragment below shows, when I try to use the compiler, it can't find the _start entry.  I am told that 
the symbol is in the crt0* which is on my system. How do I tell the compiler where to find the the libraries for the link step.

How do I tell the new linker, powerpc-motorola-elf-ld, to also look in places other than /usr/local/lib for the newlib files (which was built after powerpc-motorola-elf-ld.


> ssmith AT AZ75-SSMITH ~
> $ $target-gcc hello.c
> /usr/local/lib/gcc-lib/powerpc-motorola-elf/2.95.2-6/../../../../powerpc-motorola-elf/bin/ld: warning: cannot find entry symbol _start;
defaulting to 01800074
> /cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o: In function `main':
> /cygdrive/c/DOCUME~1/ssmith/LOCALS~1/Temp/ccF4RY4I.o(.text+0x20): undefined reference to `printf'
> collect2: ld returned 1 exit status
>
> ssmith AT AZ75-SSMITH ~
> $ ls
> hello.c

Stephen

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019