www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/28/13:31:22

From: Jih-Shin Ho <u7711501 AT bicmos DOT ee DOT nctu DOT edu DOT tw>
Subject: Re: SEGV without option -s to gcc
To: acc AT asterix DOT inescn DOT pt (Antonio Costa)
Date: Mon, 29 Nov 93 2:07:09 WST
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)

> 
> Hi.
> 
> I have a problem which I cannot understand why it happens.
> If I compile programs with gcc (from djgpp 1.10) with option -s, all
> my programs work fine.
> But if I don't use that option, almost all of them stop immediately with
> exception 'segmentation violation', pointing to some place inside malloc
> code (usually malloc+200 or similar).
> 
> I'm using my own go32.exe (compiled directly with BCC 3.1 using option -3
> and optimizations).
> 
> I don't mind using always '-s', but unfortunately I can't use the debugger,
> because that problem is in the startup phase of a program, before executing
> the program's code.
> 
> Is it related to go32.exe version I use? Should I change to another go32.exe
> version?
> 
> Thanks in advance,
> Antonio.

It is not the problem of go32, but the problem of ld.
You can get binutl22-fix.zip from omnigate.clarkson.edu:/pub/msdos/djgpp/pub.


  -- Jih-Shin Ho

- Raw text -


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