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] |
Other format: | [Raw text] |
From: Dan Kegel <dank@kegel.com> To: Alexander Gdalevich <gdalevich@hotmail.com> CC: crossgcc@sources.redhat.com Subject: Re: strange linking problem Date: Mon, 15 Dec 2003 09:04:56 -0800
Alexander Gdalevich wrote:I've recently build the newest gcc 3.3.2 cross-compiler. It works fine, but I have trouble linking with ld.
Here is the output from gcc when compiling a regular helloworld program:
Program =============================== hello.c --------------------------------------------------------------------- #include <stdio.h>
int main(int argc, char ** argv) { return fprintf(stderr, "Hello world!\r\n"); } ===============================
Output when linked with collect2:
=============================== sh-elf-gcc -mb -fno-delayed-branch -O2 -m4 -v hello.c ----------------------------------------------------------------------
Reading specs from /gcc_build/sh4/lib/gcc-lib/sh-elf/3.3.2/specs Configured with: ../gcc-3.3.2/configure --target=sh-elf
Before we dive in: target sh-elf is for newlib / bare metal targets that don't have glibc. Are you quite sure that's what you wanted? - Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |