mirror of
https://github.com/dynup/kpatch
synced 2024-12-21 20:59:57 +00:00
Merge pull request #960 from wwheart/master
kpatch-elf: fix the unexpected elf class
This commit is contained in:
commit
d40ecd6835
@ -765,7 +765,7 @@ void kpatch_write_output_elf(struct kpatch_elf *kelf, Elf *elf, char *outfile)
|
||||
if (!elfout)
|
||||
ERROR("elf_begin");
|
||||
|
||||
if (!gelf_newehdr(elfout, gelf_getclass(kelf->elf)))
|
||||
if (!gelf_newehdr(elfout, gelf_getclass(elf)))
|
||||
ERROR("gelf_newehdr");
|
||||
|
||||
if (!gelf_getehdr(elfout, &ehout))
|
||||
|
Loading…
Reference in New Issue
Block a user