]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
MIPS: Ensure ELF appended dtb is relocated
authorYasha Cherikovsky <yasha.che3@gmail.com>
Fri, 8 Mar 2019 12:58:51 +0000 (14:58 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 1 Apr 2019 20:00:59 +0000 (15:00 -0500)
commit75ce4282f12d790317ebe66d687f8bbec8621fc1
tree827756aded6b62f08000c957439193b2bcba165a
parent9124790d1b9b79e69c22fdb5761273168cb8abda
MIPS: Ensure ELF appended dtb is relocated

BugLink: https://bugs.launchpad.net/bugs/1822671
commit 3f0a53bc6482fb09770982a8447981260ea258dc upstream.

This fixes booting with the combination of CONFIG_RELOCATABLE=y
and CONFIG_MIPS_ELF_APPENDED_DTB=y.

Sections that appear after the relocation table are not relocated
on system boot (except .bss, which has special handling).

With CONFIG_MIPS_ELF_APPENDED_DTB, the dtb is part of the
vmlinux ELF, so it must be relocated together with everything else.

Fixes: 069fd766271d ("MIPS: Reserve space for relocation table")
Signed-off-by: Yasha Cherikovsky <yasha.che3@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/mips/kernel/vmlinux.lds.S