[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Specifying crt*.o file
From: |
Anton Erasmus |
Subject: |
Re: [avr-gcc-list] Specifying crt*.o file |
Date: |
Wed, 9 Jan 2002 21:48:11 +0200 |
Hi,
If I specify the crt file explicittely on the command line, I get
"Duplicate Symbol" errors. It seems that the default crt file is still
linked in as well. I cannot find the option, that tells gcc not to link
in the default crt file.
The -nostartfiles option that reinhard jessich suggested, gives the
warning "unknown option nostartfiles".
For the moment I have edited the specs file to change the name of
the default crt file, but this is a complete hack.
Regards
Anton
> Hello Anton,
>
> Just specify the crt*.o file on the linker command line. The important
> thing to remember is to PUT IT FIRST (ie before any other .o files).
> This will ensure (I only say this from experience) that the contents
> are put at address zero.
>
> Regards,
>
> Scott
>
> Anton Erasmus wrote:
> >
> > Hi,
> >
> > I am trying to use a custom start-up file with avr-gcc. How does one
> > force the linker to link with a specified crt file in stead of the
> > default crt*.o file ?
> >
> > Regards
> > Anton
> >
> > avr-gcc-list at http://avr1.org
> avr-gcc-list at http://avr1.org
>
avr-gcc-list at http://avr1.org