- Add dwz-0.12-DW_OP_GNU_variable_value.patch to handle
DW_OP_GNU_variable_value. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/dwz?expand=0&rev=11
This commit is contained in:
parent
98272ab0b3
commit
64e961df8d
35
dwz-0.12-DW_OP_GNU_variable_value.patch
Normal file
35
dwz-0.12-DW_OP_GNU_variable_value.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
diff --git a/dwarf2.def b/dwarf2.def
|
||||||
|
index e9a8bca..17311fa 100644
|
||||||
|
--- a/dwarf2.def
|
||||||
|
+++ b/dwarf2.def
|
||||||
|
@@ -588,6 +588,9 @@ DW_OP (DW_OP_GNU_reinterpret, 0xf9)
|
||||||
|
DW_OP (DW_OP_GNU_parameter_ref, 0xfa)
|
||||||
|
/* Extension for Fission. See http://gcc.gnu.org/wiki/DebugFission. */
|
||||||
|
DW_OP (DW_OP_GNU_addr_index, 0xfb)
|
||||||
|
+/* The GNU variable value extension.
|
||||||
|
+ See http://dwarfstd.org/ShowIssue.php?issue=161109.2 . */
|
||||||
|
+DW_OP (DW_OP_GNU_variable_value, 0xfd)
|
||||||
|
/* HP extensions. */
|
||||||
|
DW_OP_DUP (DW_OP_HP_unknown, 0xe0) /* Ouch, the same as GNU_push_tls_address. */
|
||||||
|
DW_OP (DW_OP_HP_is_value, 0xe1)
|
||||||
|
diff --git a/dwz.c b/dwz.c
|
||||||
|
index b3b779d..b387ebc 100644
|
||||||
|
--- a/dwz.c
|
||||||
|
+++ b/dwz.c
|
||||||
|
@@ -1522,6 +1522,7 @@ read_exprloc (DSO *dso, dw_die_ref die, unsigned char *ptr, size_t len,
|
||||||
|
ptr += 4;
|
||||||
|
break;
|
||||||
|
case DW_OP_call_ref:
|
||||||
|
+ case DW_OP_GNU_variable_value:
|
||||||
|
case DW_OP_GNU_implicit_pointer:
|
||||||
|
cu = die_cu (die);
|
||||||
|
addr = read_size (ptr, cu->cu_version == 2 ? ptr_size : 4);
|
||||||
|
@@ -8576,6 +8577,7 @@ adjust_exprloc (dw_cu_ref cu, dw_die_ref die, dw_cu_ref refcu,
|
||||||
|
ptr += 4;
|
||||||
|
break;
|
||||||
|
case DW_OP_call_ref:
|
||||||
|
+ case DW_OP_GNU_variable_value:
|
||||||
|
case DW_OP_GNU_implicit_pointer:
|
||||||
|
addr = read_size (ptr, refcu->cu_version == 2 ? ptr_size : 4);
|
||||||
|
assert (cu->cu_version == refcu->cu_version);
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 11 11:02:06 UTC 2018 - rguenther@suse.com
|
||||||
|
|
||||||
|
- Add dwz-0.12-DW_OP_GNU_variable_value.patch to handle
|
||||||
|
DW_OP_GNU_variable_value.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 14 13:32:56 UTC 2018 - mliska@suse.cz
|
Wed Mar 14 13:32:56 UTC 2018 - mliska@suse.cz
|
||||||
|
|
||||||
|
2
dwz.spec
2
dwz.spec
@ -26,6 +26,7 @@ License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
Patch0: dwz-0.12-ignore-nobits.patch
|
Patch0: dwz-0.12-ignore-nobits.patch
|
||||||
|
Patch1: dwz-0.12-DW_OP_GNU_variable_value.patch
|
||||||
BuildRequires: libelf-devel
|
BuildRequires: libelf-devel
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ is needed.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
||||||
|
Loading…
Reference in New Issue
Block a user