[coldfire-gnu-discuss] GNU link error with code sourcery
vika vika
vika238 at yahoo.com
Tue Jan 23 23:28:37 UTC 2007
Hi Daniel ,
-nostartfiles is to avoid startup program was useful in my old GNU compiler
That worked..thanks for your valuable suggestion
.I could move forward today .. :)
Regards,
Vika
Daniel Jacobowitz <dan at codesourcery.com> wrote: On Tue, Jan 23, 2007 at 02:14:12PM -0800, vika vika wrote:
> gnutest.obj: $(C_CPP_OBJ) linkfile.ld
> $(CF2_CCP) $(LDFLAGS) -Tlinkfile.ld -lgcc -nostartfiles -o $@ $(C_CPP_OBJ)
Why are you using -nostartfiles? Things usually won't work right if
you do that, because the C and C++ runtimes won't be properly
initialized. You can probably remove -lgcc too.
Is it because you want to override the initialization code? I think
there's another way you're supposed to do that - but I don't know it
myself.
--
Daniel Jacobowitz
CodeSourcery
---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20070123/17c9610b/attachment.html>
More information about the coldfire-gnu-discuss
mailing list