Hello community,

here is the log from the commit of package kexec-tools for openSUSE:Factory 
checked in at 2018-10-01 09:05:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kexec-tools (Old)
 and      /work/SRC/openSUSE:Factory/.kexec-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kexec-tools"

Mon Oct  1 09:05:01 2018 rev:127 rq:637049 version:2.0.17

Changes:
--------
--- /work/SRC/openSUSE:Factory/kexec-tools/kexec-tools.changes  2018-04-26 
13:33:06.154917070 +0200
+++ /work/SRC/openSUSE:Factory/.kexec-tools.new/kexec-tools.changes     
2018-10-01 09:05:06.427908836 +0200
@@ -1,0 +2,15 @@
+Mon Sep 10 14:27:09 UTC 2018 - Alberto Planas Dominguez <[email protected]>
+
+- kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32.patch
+  Upstream backport.
+
+  In response to a change in binutils, commit b21ebf2fb4c
+  (x86: Treat R_X86_64_PLT32 as R_X86_64_PC32) was applied to
+  the linux kernel during the 4.16 development cycle and has
+  since been backported to earlier stable kernel series. The
+  change results in the failure message in $SUBJECT when
+  rebooting via kexec.
+
+  Fix this by replicating the change in kexec. 
+
+-------------------------------------------------------------------

New:
----
  kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kexec-tools.spec ++++++
--- /var/tmp/diff_new_pack.tAmMDI/_old  2018-10-01 09:05:07.687907750 +0200
+++ /var/tmp/diff_new_pack.tAmMDI/_new  2018-10-01 09:05:07.687907750 +0200
@@ -20,7 +20,7 @@
 Version:        2.0.17
 Release:        0
 Summary:        Tools for loading replacement kernels into memory
-License:        GPL-2.0+
+License:        GPL-2.0-or-later
 Group:          System/Kernel
 Url:            
https://www.kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
 Source:         
https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/snapshot/%{name}-%{version}.tar.xz
@@ -31,6 +31,7 @@
 Patch2:         %{name}-xen-balloon-up.patch
 Patch3:         %{name}-disable-test.patch
 Patch14:        %{name}-vmcoreinfo-in-xen.patch
+Patch15:        %{name}-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  systemd-rpm-macros
@@ -57,6 +58,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch14 -p1
+%patch15 -p1
 
 %build
 autoreconf -fvi

++++++ kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32.patch ++++++
From: Chris Clayton <[email protected]>
Date: Mon, 20 Aug 2018 12:00:31 +0100
Subject: kexec: fix for "Unhandled rela relocation: R_X86_64_PLT32" error
Upstream: merged
Git-commit: b9de21ef51a7ceab7122a707c188602eae22c4ee

In response to a change in binutils, commit b21ebf2fb4c
(x86: Treat R_X86_64_PLT32 as R_X86_64_PC32) was applied to
the linux kernel during the 4.16 development cycle and has
since been backported to earlier stable kernel series. The
change results in the failure message in $SUBJECT when
rebooting via kexec.

Fix this by replicating the change in kexec.

Signed-off-by: Chris Clayton <[email protected]>
Acked-by: Baoquan He <[email protected]>
Tested-by: Bhupesh Sharma <[email protected]>
Acked-by: Bhupesh Sharma <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
---
 kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c 
b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
index 7fdde73..db85b44 100644
--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
@@ -79,6 +79,7 @@ void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr),
                        goto overflow;
                break;
        case R_X86_64_PC32: 
+       case R_X86_64_PLT32:
                *(uint32_t *)location = value - address;
                break;
        default:

Reply via email to