Mail Archives: djgpp/1997/04/19/18:13:33
On 19 Apr 97 at 21:47, Gregary J Boyles wrote:
> djgpp.lnk
> ----------
> OUTPUT_FORMAT("coff-go32")
> ENTRY(start)
> SECTIONS
> {
>   .text  0x1000+SIZEOF_HEADERS : {
>     *(.text)
>     etext  =  . ; _etext = .;
>     . = ALIGN(0x200);
>   }
>   .data  ALIGN(0x200) : {
>     djgpp_first_ctor = . ;
>     *(.ctor)
>     djgpp_last_ctor = . ;
>     djgpp_first_dtor = . ;
>     *(.dtor)
>     djgpp_last_dtor = . ;
>     *(.data)
>      edata  =  . ; _edata = .;
>      . = ALIGN(0x200);
>   }
>   .bss  SIZEOF(.data) + ADDR(.data) :
>   { 					
>     *(.bss)
>     *(COMMON)
>      end = . ; _end = .;
>      . = ALIGN(0x200);
>   }
> }
Ah, good, good! I dunno how it got like that, but your djgpp.lnk should
read:
-------------------------
OUTPUT_FORMAT("coff-go32")
ENTRY(start)
SECTIONS
{
  .text  0x1000+SIZEOF_HEADERS : {
    *(.text)
    etext  =  . ; _etext = .;
    sltext = . ;
    *(.ltxt)
    eltext = . ;
    . = ALIGN(0x200);
  }
  .data  ALIGN(0x200) : {
    djgpp_first_ctor = . ;
    *(.ctor)
    djgpp_last_ctor = . ;
    djgpp_first_dtor = . ;
    *(.dtor)
    djgpp_last_dtor = . ;
    *(.data)
     edata  =  . ; _edata = .;
    sldata = . ;
    *(.ldat)
    eldata = . ;
     . = ALIGN(0x200);
  }
  .bss  SIZEOF(.data) + ADDR(.data) :
  { 					
    *(.bss)
    *(COMMON)
     end = . ; _end = .;
     . = ALIGN(0x200);
  }
}
-------------------------
This explains why those symbols weren't found by the linker. The modified
djgpp.lnk contains special commands to place symbols around the locked
sections, so the locker can find 'em!
> I also have downloaded your patched versions of cc1.exe and cc1plus.exe
Right, I think it should work OK now!
Good Luck,
ABW
--
Alaric B. Williams (alaric AT abwillms DOT demon DOT co DOT uk)
   ---<## OpenDOS FAQ ##>---
Plain HTML: http://www.delorie.com/opendos/faq/
            http://www.deltasoft.com/faq.html
Fancy HTML: http://www.deltasoft.com/faq0000.html
- Raw text -