www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/09/28/13:51:48

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200009281751.TAA20261@father.ludd.luth.se>
Subject: Re: (fwd) startup-code
In-Reply-To: <Pine.SUN.3.91.1000926161513.13268U@is> from Eli Zaretskii at "Sep 26, 2000 04:18:19 pm"
To: djgpp-workers AT delorie DOT com
Date: Thu, 28 Sep 2000 19:51:36 +0200 (MET DST)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

According to Eli Zaretskii:
> This is a separate problem that existed all the time.  We could decide to 
> change mcount.c to eliminate this problem, but that has nothing to do with 
> testing whether PROVIDE works.  For the latter, leaving mcount.c 
> unmodified, for as long as you test PROVIDE, is better.

Ok. It's been tested. Compiling ar for profiling went ok and execution
of it (on my 386) went well as well.

So I suggest we change lib/djgpp.djl to:
"OUTPUT_FORMAT("coff-go32")
ENTRY(start)
SECTIONS
{
  .text  0x1000+SIZEOF_HEADERS : {
    *(.text)
    *(.gnu.linkonce.t*)
    *(.gnu.linkonce.r*)
    etext  =  . ;
    PROVIDE(_etext  =  .);
     . = ALIGN(0x200);
  }
  .data  ALIGN(0x200) : {
    djgpp_first_ctor = . ;
    *(.ctor)
    djgpp_last_ctor = . ;
    djgpp_first_dtor = . ;
    *(.dtor)
    djgpp_last_dtor = . ;
    *(.data)
    *(.gnu.linkonce.d*)
    *(.gcc_exc*)
    ___EH_FRAME_BEGIN__ = . ;
    *(.eh_fram*)
    ___EH_FRAME_END__ = . ;
    LONG(0)
    edata  =  . ;
    PROVIDE(_edata  =  .);
     . = ALIGN(0x200);
  }
  .bss  SIZEOF(.data) + ADDR(.data) :
  {
    _object.2 = . ;
    . += 24 ;
    *(.bss)
    *(COMMON)
    end = . ;
    PROVIDE(_end = .);
     . = ALIGN(0x200);
  }
}"


Right,

						MartinS

- Raw text -


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