[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH LIVEPATCH-BUILD-TOOLS 2/2] Remove section alignment requirement
On Fri, Jun 09, 2017 at 05:03:36PM +0100, Ross Lagerwall wrote: > Remove the requirement that section twins have the same alignment. The > section alignment of the patched section is respected by the loader in > Xen so it shouldn't matter if the original section alignment was > different. Why would we have different section aligment for the same twins? I understand the change here - if for example the original code had: .rodata.str.1 [I think I got the section name right - that should be a string generated with 1 byte alignment, say 'a']. But the new patch has a new one: .rodata.str.2 ['a' -> 'ab'] Is that what we are fixing here? Also CC-ing Sarah > > Signed-off-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> > --- > create-diff-object.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/create-diff-object.c b/create-diff-object.c > index ba19daf..82f777e 100644 > --- a/create-diff-object.c > +++ b/create-diff-object.c > @@ -754,7 +754,6 @@ static void kpatch_compare_correlated_section(struct > section *sec) > if (sec1->sh.sh_type != sec2->sh.sh_type || > sec1->sh.sh_flags != sec2->sh.sh_flags || > sec1->sh.sh_addr != sec2->sh.sh_addr || > - sec1->sh.sh_addralign != sec2->sh.sh_addralign || > sec1->sh.sh_entsize != sec2->sh.sh_entsize) > DIFF_FATAL("%s section header details differ", sec1->name); > > -- > 2.9.4 > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |