summaryrefslogtreecommitdiff
path: root/asm/nasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/nasm.c')
-rw-r--r--asm/nasm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index 6299831f..b851ac4c 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -424,6 +424,13 @@ int main(int argc, char **argv)
tolower_init();
src_init();
+ /*
+ * We must call init_labels() before the command line parsing,
+ * because we may be setting prefixes/suffixes from the command
+ * line.
+ */
+ init_labels();
+
offsets = raa_init();
forwrefs = saa_init((int32_t)sizeof(struct forwrefinfo));
@@ -553,13 +560,6 @@ int main(int argc, char **argv)
nasm_fatal(ERR_NOFILE,
"unable to open output file `%s'", outname);
- /*
- * We must call init_labels() before ofmt->init() since
- * some object formats will want to define labels in their
- * init routines. (eg OS/2 defines the FLAT group)
- */
- init_labels();
-
ofmt->init();
dfmt->init();