------- 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.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to