Re: [RFC][PATCH] objtool: STAC/CLAC validation

From: Peter Zijlstra
Date: Sat Feb 23 2019 - 03:39:53 EST


On Fri, Feb 22, 2019 at 03:39:48PM -0800, hpa@xxxxxxxxx wrote:
> Objtool could also detect CLAC-STAC or STAC-CLAC sequences without
> memory operations and remove them; don't know how often that happens,
> but I know it *does* happen.

Objtool doesn't know about memops; that'd be a lot of work. Also,
objtool doesn't actually rewrite the text, at best it could warn about
such occurences.