diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 743b3be34..563d8b60c 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1660,7 +1660,7 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf, sec->sh.sh_type = SHT_PROGBITS; sec->sh.sh_entsize = sizeof(*dynrelas); sec->sh.sh_addralign = 8; - sec->sh.sh_flags = SHF_ALLOC; + sec->sh.sh_flags = SHF_ALLOC | SHF_WRITE; /* create .rela.kpatch.dynrelas*/