]> xenbits.xensource.com Git - livepatch-build-tools.git/commit
livepatch-build: Strip transient or unneeded symbols
authorPawel Wieczorkiewicz <wipawel@amazon.de>
Tue, 26 Nov 2019 12:25:10 +0000 (12:25 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 6 Feb 2020 16:41:06 +0000 (16:41 +0000)
commita8dce6eb45437bb0c8df60ceb2d6ae2177013ae3
tree52d5c6225323fa11c7c06c159c29cc50b3ef471a
parent2142f99087e87170e2e2c4bb1e74795e1bc21b76
livepatch-build: Strip transient or unneeded symbols

In the process of creating a final hotpatch module file make sure to
strip all transient symbols that have not been caught and removed by
create-diff-object processing. For now these are only the hooks
kpatch load/unload symbols.

For all new object files that are carried along for the final linking
the transient hooks symbols are not stripped and neither are any
unneeded symbols. Strip the transient hooks symbols explicitly from
resulting object file.
Add a new option '--strip' to additionally strip all unneeded symbols
from new object files.

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