commit 04d37127cc52a5875eb531d819ed80142a138c7e
Author: Jan RÄ™korajski <[email protected]>
Date:   Tue Mar 24 22:34:34 2020 +0100

    - fix building with binutils 2.34

 binutils-2.34.patch | 18 ++++++++++++++++++
 kernel-tools.spec   |  2 ++
 2 files changed, 20 insertions(+)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 6cd16cd..e668be6 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -38,6 +38,7 @@ Patch1:               x32.patch
 Patch2:                regex.patch
 Patch3:                %{name}-perf-update.patch
 Patch4:                %{name}-perf-gtk2.patch
+Patch5:                binutils-2.34.patch
 URL:           https://www.kernel.org/
 BuildRequires: bison
 BuildRequires: docutils
@@ -400,6 +401,7 @@ cd linux-%{basever}
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__sed} -i -e '/^CFLAGS = /s/ -g / $(OPTFLAGS) /' tools/hv/Makefile
 %{__sed} -i -e '/^CFLAGS+=/s/ -O1 / $(OPTFLAGS) /' tools/thermal/tmon/Makefile
diff --git a/binutils-2.34.patch b/binutils-2.34.patch
new file mode 100644
index 0000000..5d8ecd8
--- /dev/null
+++ b/binutils-2.34.patch
@@ -0,0 +1,18 @@
+--- linux-5.5/tools/perf/util/srcline.c~       2020-01-27 01:23:03.000000000 
+0100
++++ linux-5.5/tools/perf/util/srcline.c        2020-03-24 22:05:05.941464830 
+0100
+@@ -197,12 +197,12 @@
+       if (a2l->found)
+               return;
+ 
+-      if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
++      if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
+               return;
+ 
+       pc = a2l->addr;
+-      vma = bfd_get_section_vma(abfd, section);
+-      size = bfd_get_section_size(section);
++      vma = bfd_section_vma(section);
++      size = bfd_section_size(section);
+ 
+       if (pc < vma || pc >= vma + size)
+               return;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/04d37127cc52a5875eb531d819ed80142a138c7e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to