www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/19/18:13:33

Comments: Authenticated sender is <alaric+abwillms AT sdps DOT demon DOT co DOT uk>
From: "Alaric B. Williams" <alaric AT abwillms DOT demon DOT co DOT uk>
To: Gregary J Boyles <boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au>
Date: Sat, 19 Apr 1997 22:52:52 +0000
MIME-Version: 1.0
Subject: RE:djgpp.lnk & specs (libhw problem)
Reply-to: alaric AT abwillms DOT demon DOT co DOT uk
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.GSO.3.95.970419214532.517A-100000@lion.cs.latrobe.edu.au>
Message-ID: <861486585.0526761.0@abwillms.demon.co.uk>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019