[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/3494] sh4ld is showing a error
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/3494] sh4ld is showing a error |
Date: |
9 Nov 2006 08:52:23 -0000 |
------- Additional Comments From nickc at redhat dot com 2006-11-09 08:52
-------
Hi Divya,
The problem is that you are invoking the linker directly, rather than letting
the gcc program construct the linker command line for you. So in this
particular case you have forgotten to tell the linker where to find the C
library containing the printf() function.
The best way to resolve this problem is to use the gcc program together with
the -Wl switch to pass extra parameters directly to the linker, like this:
sh4gcc -o hello hello.o -Wl,--defsym,_start=0x84001000
-Wl,--defsym,_stack=0x85fffffc
Cheers
Nick
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=3494
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.