delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/06/03/10:46:12

Message-Id: <m0yhEmA-0001hEC@sloep112.cs.vu.nl>
Date: Wed, 3 Jun 98 16:44:25 MET DST
From: Michel de Ruiter <mdruiter AT cs DOT vu DOT nl>
To: dj AT delorie DOT com
cc: djgpp-workers AT delorie DOT com
Subject: symify patch

I have noticed problems with symify, with certain big executables,
using gcc 2.8.1. It turned out to be a problem in syms.c. If
f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno == 0, several parts of memory
were overwritten with garbage. A patch follows.

I hope it helps (enough :).
--
Groeten, Michel.        http://www.cs.vu.nl/~mdruiter
  ____________
  \  /====\  /          "You know, Beavis, you need things that suck,
   \/      \/           to have things that are cool", Butt-Head.

--- src/debug/common/syms_old.c	Tue Jun  2 23:31:26 1998
+++ src/debug/common/syms.c	Tue Jun  2 23:31:36 1998
@@ -287,7 +287,7 @@ static void process_coff(FILE *fd, long 
         {
           files[f-1].lines = l;
         }
-	if (l_pending)
+	if (l_pending && f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno)
         {
           int lbase = f_aux[i+1].x_sym.x_misc.x_lnsz.x_lnno - 1;
           int i2;

- Raw text -


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