delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/19/09:32:04

Message-Id: <199908191235.MAA09320@out1.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Thu, 19 Aug 1999 08:34:54 -0400
MIME-Version: 1.0
Subject: Re: crtbegin.o and crtend.o
In-reply-to: <199908182217.AAA13050@robby.dittmannsdorf.de>
References: <199908171505 DOT PAA97176 AT out4 DOT ibm DOT net>
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> When I said in the past, that the __EH_??? stuff can be removed, then
> I have not meant to remove the LONG(0) !! This NEEDED! (at least with
> gcc 2.8.1 where I tried without the LONG(0) and got a crash when an
> exception was invoked).

Ouch. Here's a new version with the LONG(0) put back in (plus a small change to the 
link once sections).

*** lib/djgpp.djm	Fri Jul 30 03:50:40 1999
--- lib/djgpp.djl	Thu Aug 19 08:31:56 1999
*************** SECTIONS
*** 4,11 ****
  {
    .text  0x1000+SIZEOF_HEADERS : {
      *(.text)
!     *(.gnu.linkonce.t*)
!     *(.gnu.linkonce.r*)
      etext  =  . ; _etext = .;
      . = ALIGN(0x200);
    }
--- 4,17 ----
  {
    .text  0x1000+SIZEOF_HEADERS : {
      *(.text)
!     *(.gnu.linkonce.t.*)
!     *(.gnu.linkonce.r.*)
!     gcc_init = .;
!     *(.init)
!     gcc_init_end = .;
!     gcc_fini = .;
!     *(.fini)
!     gcc_fini_end = .;
      etext  =  . ; _etext = .;
      . = ALIGN(0x200);
    }
*************** SECTIONS
*** 17,27 ****
      *(.dtor)
      djgpp_last_dtor = . ;
      *(.data)
!     *(.gnu.linkonce.d*)
      *(.gcc_exc*)
-     ___EH_FRAME_BEGIN__ = . ;
      *(.eh_fram*)
-     ___EH_FRAME_END__ = . ;
      LONG(0)
       edata  =  . ; _edata = .;
       . = ALIGN(0x200);
--- 23,31 ----
      *(.dtor)
      djgpp_last_dtor = . ;
      *(.data)
!     *(.gnu.linkonce.d.*)
      *(.gcc_exc*)
      *(.eh_fram*)
      LONG(0)
       edata  =  . ; _edata = .;
       . = ALIGN(0x200);

--- 
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/

- Raw text -


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