aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/kexec-tools/patches
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2019-07-11 22:34:03 +0800
committerDaniel Golle <daniel@makrotopia.org>2020-03-20 21:45:06 +0000
commitec5e8461c194346c4341e3e8bb35bc06ad707d47 (patch)
tree184c2e8ea322728ec0ee126dd4a06336dfaf66cd /package/boot/kexec-tools/patches
parentecef29b29463e7549779e90739e61f8729ccaf09 (diff)
downloadupstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.tar.gz
upstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.tar.bz2
upstream-ec5e8461c194346c4341e3e8bb35bc06ad707d47.zip
x86: make crashdump works
1. KERNEL_CRASH_DUMP should depends on KERNEL_PROC_KCORE (kexec use it) 2. select crashkernel mem size by totalmem mem <= 256M disable crashkernel by default mem >= 4G use 256M for crashkernel mem >= 8G use 512M for crashkernel default use 128M 3. set BOOT_IMAGE in kdump.init 4. resolve a "Unhandled rela relocation: R_X86_64_PLT32" error Tested on x86_64 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'package/boot/kexec-tools/patches')
-rw-r--r--package/boot/kexec-tools/patches/100-kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32-error.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/boot/kexec-tools/patches/100-kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32-error.patch b/package/boot/kexec-tools/patches/100-kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32-error.patch
new file mode 100644
index 0000000000..dfad21992b
--- /dev/null
+++ b/package/boot/kexec-tools/patches/100-kexec-tools-fix-for-Unhandled-rela-relocation-R_X86_64_PLT32-error.patch
@@ -0,0 +1,14 @@
+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..af33689 100644
+--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
++++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+@@ -78,7 +78,8 @@ void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr),
+ if ((int64_t)value != *(int32_t *)location)
+ goto overflow;
+ break;
+- case R_X86_64_PC32:
++ case R_X86_64_PC32:
++ case R_X86_64_PLT32:
+ *(uint32_t *)location = value - address;
+ break;
+ default: