Messages in this thread | | | Date | Mon, 8 Jun 2020 13:01:08 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible |
| |
On Mon, Jun 08, 2020 at 09:57:39AM +0200, Dmitry Vyukov wrote:
> As a crazy idea: is it possible to employ objtool (linker script?) to > rewrite all coverage calls to nops in the noinstr section? Or relocate > to nop function? > What we are trying to do is very static, it _should_ have been done > during build. We don't have means in existing _compilers_ to do this, > but maybe we could do it elsewhere during build?...
Let me try and figure out how to make objtool actually rewrite code.
| |