0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

Fix elf vs elf32 stabs generation bug

When invoked as -f elf -g, stabs info was not being generated.
This commit is contained in:
Charles Crayne
2007-11-30 16:23:56 -08:00
parent 5f5a252a36
commit 116994111b

View File

@@ -230,6 +230,8 @@ static int32_t elf_sym_sect;
static void elf_init(FILE * fp, efunc errfunc, ldfunc ldef, evalfunc eval) static void elf_init(FILE * fp, efunc errfunc, ldfunc ldef, evalfunc eval)
{ {
if (of_elf.current_dfmt != &null_debug_form)
of_elf32.current_dfmt = of_elf.current_dfmt;
elffp = fp; elffp = fp;
error = errfunc; error = errfunc;
evaluate = eval; evaluate = eval;