]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
Remove section alignment requirement
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 24 Apr 2017 12:57:57 +0000 (13:57 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 12 Jun 2017 07:27:39 +0000 (08:27 +0100)
commit0c104573a1c168995ec553778d1d2d1ebe9c9042
tree0ad5b4413e9cadcdde2e4804e2d18b1d80835974
parentb30d34ce8581d86f16528c765c2ecd068380f0f0
Remove section alignment requirement

Remove the requirement that section twins (i.e. functions) 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.

This was discovered when building a live patch for XSA-213. For reasons
known only to the compiler, the alignment of arch_do_multicall_call()
changed from 1 to 16. This should not prevent the build tools from
generating a live patch.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
create-diff-object.c