Mail Archives: djgpp/1996/11/05/10:38:29
Ilya P. Ryzhenkov wrote:
>
> Who can tell me what are this symbols and where does they
> exist :
> djgpp_first_dtor
> djgpp_last_dtor
> end
> They are the only symbols left unreferenced after using
> ld -r -o program.o *.o l:\djgpp\lib\crt0.o -lc
>
> Also can someone say what modules (*.o in libc.a) are used
> in program startup sequence ? I know there are crt1* but may be
> some other ?
These symbols are in the djgpp.lnk script, which the linker use.
You have to add
l:\djgpp\lib\djgpp.lnk
to the -o files of your ld script.
BTW, this is covered in the FAQ, section 8.13...
Francois
- Raw text -