rename .patches section to .kpatch.patches

Adding .kpatch to the section name more clearly documents that these
are kpatch related sections.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-05-14 15:51:41 -05:00
parent 38b7ac74ad
commit 2de5f6cbfb
2 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
__kpatch_patches = ADDR(.patches);
__kpatch_patches_end = ADDR(.patches) + SIZEOF(.patches);
__kpatch_patches = ADDR(.kpatch.patches);
__kpatch_patches_end = ADDR(.kpatch.patches) + SIZEOF(.kpatch.patches);

View File

@ -1386,7 +1386,7 @@ void kpatch_create_patches_sections(struct kpatch_elf *kelf,
patches = malloc(nr * sizeof(*patches));
if (!patches)
ERROR("malloc");
sec->name = ".patches";
sec->name = ".kpatch.patches";
sec->index = kelf->sections_nr++;
/* set data */
@ -1408,7 +1408,7 @@ void kpatch_create_patches_sections(struct kpatch_elf *kelf,
/* allocate section resources */
ALLOC_LINK(relasec, &kelf->sections);
relasec->name = ".rela.patches";
relasec->name = ".rela.kpatch.patches";
relasec->index = kelf->sections_nr++;
relasec->base = sec;
INIT_LIST_HEAD(&relasec->relas);