Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 13:29:06 +0100
From:      Patrick MARIE <mycroft@virgaria.org>
To:        Christoph Sold <cs@cheasy.de>
Cc:        pav@freebsd.org
Subject:   Re: transcode / nasm
Message-ID:  <20031214122905.GA98340@newborn.in.virgaria.org>
In-Reply-To: <200312092352.31265.cs@cheasy.de>
References:  <1070920361.69357.17.camel@hood.oook.cz> <200312082332.15024.cs@cheasy.de> <1070923111.69357.19.camel@hood.oook.cz> <200312092352.31265.cs@cheasy.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 09, 2003 at 11:52:31PM +0100, Christoph Sold wrote:
> 
> Sorry for the delay -- had to get a nap, then to work.
> 
> > Well I don't know. Is that failure reproducable?
> 
> Yes, always.
> 
> root@kiste:aclib# /usr/local/bin/nasm -felf -g -o swap.o swap.s
> Segmentation fault (core dumped)
> 
> Any hints?

  I've sent this patch to nasm-devel@ list (with justifications).
  It fixes a bug in nasm while creating the stabs table, and allows
transcode to compile on -current.

--- output/outelf.c.orig        Sun Dec 14 09:50:09 2003
+++ output/outelf.c     Sun Dec 14 10:01:05 2003
@@ -1411,7 +1411,7 @@
      the source-file, the n_desc field should be set to the number
      of remaining stabs
   */
-  WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0]+12));
+  WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
 
   ptr=stabslines;
   numstabs = 0;

  Please test it and mail me back if there is any issues.

  Thanks !
  - patrick

-- 
Patrick MARIE <mycroft@virgaria.org>
pgp: http://www.minithins.net/~mycroft/key.txt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031214122905.GA98340>