diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index f1d460c..4a46267 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1296,12 +1296,11 @@ static void kpatch_verify_patchability(struct kpatch_elf *kelf) /* * ensure we aren't including .data.* or .bss.* - * (.data.unlikely is ok b/c it only has __warned vars) + * (.data.unlikely and .data.once is ok b/c it only has __warned vars) */ if (sec->include && sec->status != NEW && - (!strncmp(sec->name, ".data", 5) || - !strncmp(sec->name, ".bss", 4)) && - strcmp(sec->name, ".data.unlikely")) { + (!strncmp(sec->name, ".data", 5) || !strncmp(sec->name, ".bss", 4)) && + (strcmp(sec->name, ".data.unlikely") && strcmp(sec->name, ".data.once"))) { log_normal("data section %s selected for inclusion\n", sec->name); errs++;