Add powerpc support to libkvm probe function
PowerPC kernels are of DYN type, instead of EXEC. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D21583
This commit is contained in:
parent
4cdea4a853
commit
8024ba45db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352175
@ -131,7 +131,8 @@ _kvm_probe_elf_kernel(kvm_t *kd, int class, int machine)
|
||||
{
|
||||
|
||||
return (kd->nlehdr.e_ident[EI_CLASS] == class &&
|
||||
kd->nlehdr.e_type == ET_EXEC &&
|
||||
((machine == EM_PPC || machine == EM_PPC64) ?
|
||||
kd->nlehdr.e_type == ET_DYN : kd->nlehdr.e_type == ET_EXEC) &&
|
||||
kd->nlehdr.e_machine == machine);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user