Messages in this thread | | | Date | Fri, 20 Oct 2017 07:03:18 -0500 | From | Josh Poimboeuf <> | Subject | Re: [PATCH 0/8] livepatch: klp-convert tool |
| |
On Fri, Oct 20, 2017 at 10:51:40AM +0200, Miroslav Benes wrote: > > But with klp-convert, there's no such documentation, because there's no > > safe way to use it without other supplementary tooling which doesn't > > exist. > > True. > > I don't know if I mentioned it before. There is -fdump-ipa-clones now in > GCC for dumping every clone operation GCC does. > > https://github.com/marxin/kgraft-analysis-tool processes the dump and > extracts useful information for a symbol.
Thanks, that looks really nice. I see that my GCC 7 has -fdump-ipa-clones.
It would be great if we could integrate that script's functionality with klp-convert somehow, such that it would warn if you're patching a function or a relocation which is affected.
Or at least document how a human could do so.
-- Josh
| |