create-diff-object: remove SHF_WRITE hack

We're no longer writing directly to the dynrela section, since the core
module has its own kpatch_dynrela data structures now.
This commit is contained in:
Josh Poimboeuf 2014-06-18 11:12:10 -05:00
parent f4bba70412
commit 7b761b566a

View File

@ -1687,7 +1687,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 | SHF_WRITE;
sec->sh.sh_flags = SHF_ALLOC;
/* create .rela.kpatch.dynrelas*/