[coldfire-gnu-discuss] GNU link error with code sourcery

Daniel Jacobowitz dan at codesourcery.com
Tue Jan 23 22:18:21 UTC 2007


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



More information about the coldfire-gnu-discuss mailing list