[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: Tue, 09 Oct 2001 23:58:37 +0800


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
     the name: file.map
     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.



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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]