Mail Archives: djgpp/1997/10/22/21:02:17
>
> 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 -