summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorDebbie Wiles <debs@dwiles.demon.co.uk>2002-05-22 19:50:30 +0000
committerDebbie Wiles <debs@dwiles.demon.co.uk>2002-05-22 19:50:30 +0000
commit8311d9f3109a8d14fb84769318081ebd12266f5d (patch)
tree959c0a95b209d1b6ec98d21eb0f69462059efd58 /nasm.c
parentae438913afd0f78551e7c652d5250868feae7d01 (diff)
downloadnasm-8311d9f3109a8d14fb84769318081ebd12266f5d.tar.gz
nasm-8311d9f3109a8d14fb84769318081ebd12266f5d.tar.bz2
nasm-8311d9f3109a8d14fb84769318081ebd12266f5d.zip
Fixed the ABSOLUTE LABEL problem
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nasm.c b/nasm.c
index c0b4d46..6916bb5 100644
--- a/nasm.c
+++ b/nasm.c
@@ -59,7 +59,6 @@ int global_offset_changed; /* referenced in labels.c */
static loc_t location;
int in_abs_seg; /* Flag we are in ABSOLUTE seg */
-static long abs_seg;
static struct RAA *offsets;
static long abs_offset;
@@ -952,7 +951,7 @@ static void assemble_file (char *fname)
"cannot use non-relocatable expression as "
"ABSOLUTE address");
else {
- abs_seg = reloc_seg(e);
+ // abs_seg = reloc_seg(e);
abs_offset = reloc_value(e);
}
} else
@@ -960,7 +959,7 @@ static void assemble_file (char *fname)
else report_error (ERR_PANIC, "invalid ABSOLUTE address "
"in pass two");
in_abs_seg = TRUE;
- location.segment = abs_seg;
+ location.segment = NO_SEG;
break;
case 7: /* DEBUG */
p = value;