output: call debug init from a central location
commit2d115448b4f3a0133f97cf93b75dec7ed0bc9e42
authorH. Peter Anvin <hpa@zytor.com>
Sun, 28 Jun 2009 04:54:10 +0000 (27 21:54 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 28 Jun 2009 04:55:31 +0000 (27 21:55 -0700)
treec433e52c04d4f3d9a9f77eaf61e775b2c9a31e9d
parent5ca5007695c4caa4658125177aa729556e5e5c2d
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>
nasm.c
output/outdbg.c
output/outieee.c
output/outobj.c