summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-27 21:54:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-27 21:55:31 -0700
commit2d115448b4f3a0133f97cf93b75dec7ed0bc9e42 (patch)
treec433e52c04d4f3d9a9f77eaf61e775b2c9a31e9d /nasm.c
parent5ca5007695c4caa4658125177aa729556e5e5c2d (diff)
downloadnasm-2d115448b4f3a0133f97cf93b75dec7ed0bc9e42.tar.gz
nasm-2d115448b4f3a0133f97cf93b75dec7ed0bc9e42.tar.bz2
nasm-2d115448b4f3a0133f97cf93b75dec7ed0bc9e42.zip
output: call debug init from a central location
We already call current_dfmt->init in the same place (at the very end of ofmt->init) in all the backends that do it; instead call it centrally in nasm.c after ofmt->init. This fixes invalid ELF files with when compiling with -F dwarf, since the dwarf initialization routine never got called. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nasm.c b/nasm.c
index 9d3776a..632d794 100644
--- a/nasm.c
+++ b/nasm.c
@@ -429,6 +429,7 @@ int main(int argc, char **argv)
init_labels();
ofmt->init(ofile, report_error, define_label, evaluate);
+ ofmt->current_dfmt->init(ofmt, NULL, ofile, report_error);
assemble_file(inname, depend_ptr);