[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/3494] sh4ld is showing a error
From: |
divya dot bettampadi at gmail dot com |
Subject: |
[Bug ld/3494] sh4ld is showing a error |
Date: |
9 Nov 2006 09:51:03 -0000 |
------- Additional Comments From divya dot bettampadi at gmail dot com
2006-11-09 09:51 -------
(In reply to comment #1)
> 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
>
Thanx nick :)
--
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.