cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/21:02:17

From: "Alexander S. Klenin" <root AT kern DOT marine DOT su>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Solution(?) to STRANGE PROBLEM
Date: Mon, 20 Oct 97 23:27:41 +1100
Distribution: world
Organization: TOO Kern
Message-ID: <AAzuqIq0I5@kern.marine.su>
Sender: news-service AT kiae DOT su
Reply-To: root AT kern DOT marine DOT su
References: <34495247 DOT 8960CC82 AT nbnet DOT nb DOT ca>
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>
>   I have figured out what was going on with my SIGSEGV!!!  It wasn't the
>   protected mode startup code (poetry).
>   I didn't think it was because all my other pmode programs still worked
>   fine while this one didn't.  I would
>   appreciate it if some would take the time to read this -- especially DJ
>   Delorie if he could...
>
[ static definitions don't work ]

Well, I a friend of mine faced the same problem a month ago.
When compiling with -S assembler code looks quite fine,
so it seems to be a problem with assembler and/or linker.
He ended up writing a preprocessor which wipes static
initalizers out of .s file, so static objects are never initalized.
After that everything worked ok (except, of course, that you
must not rely on static constructors any more).
Anyway, right now we are working on our own asm & linker,
so I hope to solve this at least for myself ;)

Alex

- Raw text -


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