delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/14/18:00:18.1

From: Bernhard Stiftner <stiftnersoftwareNOstSPAM AT gmx DOT at DOT invalid>
Subject: Re: DLX and C++
Newsgroups: comp.os.msdos.djgpp
Message-ID: <201d8cc4.aba07f21@usw-ex0108-062.remarq.com>
Lines: 41
Bytes: 1112
X-Originating-Host: 195.3.96.210
Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000614131851 DOT 29611D-100000 AT is>
X-Wren-Trace: eCEELC00czlyciEgInUuLSEhPiIwMmAlIQ0pLzB7OXVudjh1YTJ6dntud3V/
Date: Wed, 14 Jun 2000 06:14:03 -0700
NNTP-Posting-Host: 10.0.2.62
X-Complaints-To: wrenabuse AT remarq DOT com
X-Trace: WReNphoon4 960989467 10.0.2.62 (Wed, 14 Jun 2000 06:31:07 PDT)
NNTP-Posting-Date: Wed, 14 Jun 2000 06:31:07 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Greetings again,
thank you for your great hint (comparing djgpp's and DLX's
linker script). DLX works now with C++ sources after I have
made some minor changes to the DLX linker script (DLX.LD):
Changing it to

OUTPUT_FORMAT("coff-go32")

FORCE_COMMON_ALLOCATION

SECTIONS {
  .text : {
    *(.text)
    dlx_first_ctor = . ;
    *(.ctor)
    dlx_last_ctor = . ;
    dlx_first_dtor = . ;
    *(.dtor)
    dlx_last_dtor = . ;
    *(.data)
    ___EH_FRAME_BEGIN__ = . ;
    *(.eh_fram*)
    ___EH_FRAME_END__ = . ;
    *(.bss)
    *(COMMON)
  }
}


should remove all these C++ problems (I have just added
those three lines containing "eh_fram"). Note: the linker
script (DLX.LD) is both in your DLX directory and the
djgpp/lib directory - you should update both just to be
sure...
I don't know if this script also works with C object files -
 I have not tested it yet.

Hope I found a solution for every C++ and DLX user.


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful

- Raw text -


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