Re: [PATCH 13/24] objtool: Implement base jump_assert support

2018-01-26 Thread David Woodhouse
On Tue, 2018-01-23 at 16:25 +0100, Peter Zijlstra wrote: > Implement a jump_label assertion that asserts that the code location > is indeed only reachable through a static_branch. Because if GCC is > absolutely retaded it could generate code like: > > xor rax,rax > NOP/JMP 1f >    

[PATCH 13/24] objtool: Implement base jump_assert support

2018-01-23 Thread Peter Zijlstra
Implement a jump_label assertion that asserts that the code location is indeed only reachable through a static_branch. Because if GCC is absolutely retaded it could generate code like: xor rax,rax NOP/JMP 1f mov $1, rax 1: test rax,rax jz 2f 2: ins