[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] why avr-gcc and not avr-ld
From: |
Kang Tin LAI |
Subject: |
Re: [avr-gcc-list] why avr-gcc and not avr-ld |
Date: |
Wed, 10 Oct 2001 00:06:53 +0800 |
Oh,
The most important one missing: -o output.elf - which creates the
final elf file.
Cheers again!
Kang
Kang Tin LAI wrote:
>
> Hi,
>
> avr-ld [ld flags] crts8515.o file1.o files2.o -L/opt/avr/lib
> -L/opt/avr/lib/gcc-lib/avr/3.0.1 -lc -lm -lgcc
>
> [ld flags]
> some linker flags, for example -Map file.map will create map file
> with
> the name: file.map
> crts8515.o
> startup codes, assume your target is AT90S8515
> file1.o file2.o
> your object code files, add all you need to link at here
> -L option
> the search path for linker searching for library, I have 2 searched
> paths here
> -l option
> the library to be searched for, I have here the library libc, libm
> and libgcc
>
> It is the basic ld command line.
>
> Cheers.
>
> Kang
>
> Tim Lapawa wrote:
> >
> > Hi list,
> > does anyone know why it seems to be necessary to use the avr-gcc
> > and not avr-ld to link some object files to one elf?
> >
> > With avr-ld all the initialization codes is missing. No _real_init_, _init_
> > and r interrup vectors table is in the final binary.
> >
> > Wich options must I pass to avr-ld to behave like avr-gcc??
> >
> > greetings Tim
> >
> > --
> > \\\///
> > Tim Lapawa (o -) address@hidden
> > -------------oo0-(_)-0oo----------------------
> > ,ooo0 Where do you want
> > ( ) 0ooo, to go tomorrow?
> > ---\ (---------( )----------------------
> > \ _ ) ) /
> > ( _ /
> >
> > _______________________________________________
> > avr-gcc-list mailing list
> > address@hidden
> > http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list