From 116994111be03210b47ab50bd533adb5fa9cf9be Mon Sep 17 00:00:00 2001 From: Charles Crayne Date: Fri, 30 Nov 2007 16:23:56 -0800 Subject: [PATCH] Fix elf vs elf32 stabs generation bug When invoked as -f elf -g, stabs info was not being generated. --- output/outelf32.c | 2 ++ 1 file changed, 2 insertions(+) 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;