LoongArch: kdump: Set up kernel image segment

On LoongArch, we can use the same kernel image as 1st kernel when
3f89765d622 ("LoongArch: kdump: Add single kernel image implementation")
is merged, but we have to modify the entry point as well as segments
addresses in the kernel elf header (or PE format vmlinux.efi) in order
to load them into correct places.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Simon Horman <horms@kernel.org>
5 files changed