- Fix a bug to create the stabs table

Submitted by:	Patrick MARIE <mycroft@virgaria.org>
This commit is contained in:
Kirill Ponomarev 2003-12-14 15:40:49 +00:00
parent 54468d5dfe
commit f5856d1ff4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95798
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= nasm
PORTVERSION= 0.98.38
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}

View file

@ -0,0 +1,11 @@
--- output/outelf.c.orig Sun Dec 14 16:25:34 2003
+++ output/outelf.c Sun Dec 14 16:26:25 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;