From 70c439b8de78595e9a465e3907aa282aa9c82984 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 28 Jan 2018 00:56:18 +0300 Subject: [PATCH] output: elf -- Add missing dwarf loc section Lost during elf engine unification in 4670887c4db772d2d44889fbc4509b3fb65b311f https://bugzilla.nasm.us/show_bug.cgi?id=3392459 Signed-off-by: Cyrill Gorcunov --- output/outelf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/output/outelf.c b/output/outelf.c index c0b37e46..4d047611 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -3274,6 +3274,9 @@ static void dwarf_generate(void) if (is_elf32()) { WRITELONG(pbuf,0); /* null beginning offset */ WRITELONG(pbuf,0); /* null ending offset */ + } else if (is_elfx32()) { + WRITELONG(pbuf,0); /* null beginning offset */ + WRITELONG(pbuf,0); /* null ending offset */ } else { nasm_assert(is_elf64()); WRITEDLONG(pbuf,0); /* null beginning offset */