Skip to content

Commit 7d45f6b

Browse files
authored
Merge pull request #1506 from sumanthkorikkar/handle-stack-protector-loc
create-diff-object: Handle __stack_protector_loc section
2 parents 6e58fed + d26e69d commit 7d45f6b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

kpatch-build/create-diff-object.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,6 +2412,11 @@ static int s390_expolines_group_size(struct kpatch_elf *kelf, int offset)
24122412
return 4;
24132413
}
24142414

2415+
static int s390_stack_protector_loc_group_size(struct kpatch_elf *kelf, int offset)
2416+
{
2417+
return 8;
2418+
}
2419+
24152420
/*
24162421
* The rela groups in the .fixup section vary in size. The beginning of each
24172422
* .fixup rela group is referenced by the __ex_table section. To find the size
@@ -2738,6 +2743,11 @@ static struct special_section special_sections[] = {
27382743
.arch = S390,
27392744
.group_size = s390_expolines_group_size,
27402745
},
2746+
{
2747+
.name = "__stack_protector_loc",
2748+
.arch = S390,
2749+
.group_size = s390_stack_protector_loc_group_size,
2750+
},
27412751
{},
27422752
};
27432753

0 commit comments

Comments
 (0)