From 48fe2eea2743f8beb1e07e1bf0fb4b74ecab5426 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 6 Nov 2016 18:35:14 +0300 Subject: [PATCH] output: outelf,dwarf -- Add missing DW_LNS_copy Backport of master commit ed347369aeeb6ff7338249a967bd292ee78debc5 https://bugzilla.nasm.us/show_bug.cgi?id=3392325 Signed-off-by: Cyrill Gorcunov --- output/outelf32.c | 1 + output/outelf64.c | 1 + 2 files changed, 2 insertions(+) diff --git a/output/outelf32.c b/output/outelf32.c index b1596c90..b63ea9d0 100644 --- a/output/outelf32.c +++ b/output/outelf32.c @@ -1716,6 +1716,7 @@ static void dwarf32_output(int type, void *param) saa_write8(plinep,DW_LNS_advance_pc); saa_wleb128u(plinep,aa); } + saa_write8(plinep,DW_LNS_copy); } dwarf_csect->line = currentline; dwarf_csect->offset = s->offset; diff --git a/output/outelf64.c b/output/outelf64.c index 878c8e49..d0071502 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -1806,6 +1806,7 @@ static void dwarf64_output(int type, void *param) saa_write8(plinep,DW_LNS_advance_pc); saa_wleb128u(plinep,aa); } + saa_write8(plinep,DW_LNS_copy); } dwarf_csect->line = currentline; dwarf_csect->offset = s->offset;