diff options
author | Charles Crayne <chuck@thor.crayne.org> | 2007-11-30 16:23:56 -0800 |
---|---|---|
committer | Charles Crayne <chuck@thor.crayne.org> | 2007-11-30 16:23:56 -0800 |
commit | 116994111be03210b47ab50bd533adb5fa9cf9be (patch) | |
tree | 8ae849fba8c911d3f4b98b0770c298c5155ba4d2 | |
parent | 5f5a252a367974a04a576d7a988117aeb67c0b26 (diff) | |
download | nasm-116994111be03210b47ab50bd533adb5fa9cf9be.tar.gz |
Fix elf vs elf32 stabs generation bug
When invoked as -f elf -g, stabs info was not being generated.
-rw-r--r-- | output/outelf32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/output/outelf32.c b/output/outelf32.c index ab56eb77..33fe1b98 100644 --- a/output/outelf32.c +++ b/output/outelf32.c @@ -230,6 +230,8 @@ static int32_t elf_sym_sect; 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; error = errfunc; evaluate = eval; |