transcode / nasm

Patrick MARIE mycroft at virgaria.org
Sun Dec 14 04:27:23 PST 2003


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 at 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 at virgaria.org>
pgp: http://www.minithins.net/~mycroft/key.txt


More information about the freebsd-ports mailing list