]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
livepatch-build: Strip all metadata symbols from hotpatch modules
authorPawel Wieczorkiewicz <wipawel@amazon.de>
Tue, 26 Nov 2019 12:25:11 +0000 (12:25 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 6 Feb 2020 16:41:09 +0000 (16:41 +0000)
commitbb7503748242a3ec55c71196c5cbcc69643bbd8b
tree0d0b0b4a9abe9f0763e8d3c375415824963c86a4
parenta8dce6eb45437bb0c8df60ceb2d6ae2177013ae3
livepatch-build: Strip all metadata symbols from hotpatch modules

Strip all unneeded metadata symbols from generated hotpatch modules.
The metadata symbols are the symbols from metadata-like sections (e.g.
'.livepatch.funcs') or livepatch hooks symbols (defined by a set of
prefixes. E.g. 'livepatch_load_data_').

By default the create-diff-object does not create symbols in metadata
sections. However, such symbols may be implicitly added by speciying
extra entries in the sections manually (in a given patch).
The symbols are not needed for the hotpatch modules and should be
stripped to avoid symbol names collisions and to save hotpatch files
space.

Signed-off-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-build