Similar to Bug 183062 , kexec built with CFLAGS="-fPIC" fails to load any kernel image, resulting in "Unhandled rela relocation: R_X86_64_PLT32". Filtering the -fPIC flag allows kexec to successfully load any kernel capable of. Reproducible: Always Steps to Reproduce: 1. Build sys-apps/kexec-tools-2.0.2-r1 with CFLAGS="-fPIC" 2. Load a kernel with kexec -l /boot/vmlinuz 3. Chech the resulting error. Actual Results: Unhandled rela relocation: R_X86_64_PLT32 Expected Results: No error, kernel loaded and ready to a reboot. Gentoo GNU/Linux on an AMD64 processor.
Created attachment 271175 [details, diff] Dirty patch for sys-apps/kexec-tools-2.0.2-r1.ebuild Proposed dirty patch for sys-apps/kexec-tools-2.0.2-r1.ebuild, to filter the -fPIC cflag allowing a built kexec capable to load kernels capable of.
Do not add -fPIC to your flags unconditionally, such a situation is not supported.