Hello community, here is the log from the commit of package dwz for openSUSE:Factory checked in at 2019-03-12 09:44:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dwz (Old) and /work/SRC/openSUSE:Factory/.dwz.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dwz" Tue Mar 12 09:44:08 2019 rev:6 rq:682493 version:0.12 Changes: -------- --- /work/SRC/openSUSE:Factory/dwz/dwz.changes 2018-04-16 12:42:47.994623033 +0200 +++ /work/SRC/openSUSE:Factory/.dwz.new.28833/dwz.changes 2019-03-12 09:44:10.191867844 +0100 @@ -1,0 +2,6 @@ +Mon Feb 18 14:31:42 UTC 2019 - [email protected] + +- Add dwz-low-mem-Fix-DW_OP_GNU_parameter_ref-handling-in-read_exprloc.patch + to fix assert on cc1 binary from gcc bootstrap-lto [swo#24195]. + +------------------------------------------------------------------- New: ---- dwz-low-mem-Fix-DW_OP_GNU_parameter_ref-handling-in-read_exprloc.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dwz.spec ++++++ --- /var/tmp/diff_new_pack.tzQLy3/_old 2019-03-12 09:44:10.951865714 +0100 +++ /var/tmp/diff_new_pack.tzQLy3/_new 2019-03-12 09:44:10.955865702 +0100 @@ -1,7 +1,7 @@ # # spec file for package dwz # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ Source: %{name}-%{version}.tar.xz Patch0: dwz-0.12-ignore-nobits.patch Patch1: dwz-0.12-DW_OP_GNU_variable_value.patch +Patch2: dwz-low-mem-Fix-DW_OP_GNU_parameter_ref-handling-in-read_exprloc.patch BuildRequires: libelf-devel BuildRequires: xz @@ -52,6 +53,7 @@ %setup -q -n %{name} %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags}" ++++++ dwz-low-mem-Fix-DW_OP_GNU_parameter_ref-handling-in-read_exprloc.patch ++++++ [low-mem] Fix DW_OP_GNU_parameter_ref handling in read_exprloc Function read_exprloc contains a loop that marks all parents of a DW_OP_GNU_parameter_ref reference with CK_BAD. The loop however has no private loop variable, so the ref variable, initially pointing to the referenced DIE, ends up after the loop pointing to the root parent of the reference instead. Consequently, the code after the loop, intended to be executed for the referenced DIE, is instead executed for the root parent of the referenced DIE. Fix this by moving the loop alap. 2019-02-14 Tom de Vries <[email protected]> PR dwz/24195 * dwz.c (read_exprloc): Move loop marking parents with CK_BAD alap. --- dwz.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dwz.c b/dwz.c index d348418..6e6b6fb 100644 --- a/dwz.c +++ b/dwz.c @@ -1492,6 +1492,15 @@ read_exprloc (DSO *dso, dw_die_ref die, unsigned char *ptr, size_t len, } if (op == DW_OP_call2) ref->die_op_call2_referenced = 1; + if (unlikely (low_mem)) + { + ref->die_referenced = 1; + /* As .debug_loc adjustment is done after + write_info finishes, we need to keep the referenced + DIEs around uncollapsed. */ + if (need_adjust) + ref->die_intercu_referenced = 1; + } if (ref->die_ck_state == CK_KNOWN) { ref->die_ck_state = CK_BAD; @@ -1504,15 +1513,6 @@ read_exprloc (DSO *dso, dw_die_ref die, unsigned char *ptr, size_t len, } else ref->die_ck_state = CK_BAD; - if (unlikely (low_mem)) - { - ref->die_referenced = 1; - /* As .debug_loc adjustment is done after - write_info finishes, we need to keep the referenced - DIEs around uncollapsed. */ - if (need_adjust) - ref->die_intercu_referenced = 1; - } die->die_ck_state = CK_BAD; if (need_adjust) *need_adjust = true;
