aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2022-06-14 23:15:36 +0200
committerBorislav Petkov <[email protected]>2022-06-27 10:33:58 +0200
commit0b53c374b9eff2255a386f1f1cfb9a928e52a5ae (patch)
tree6c68189d053efd4ff530c6ba2b0bb86c7298d6f0 /tools/perf/scripts/python/bin
parent00e1533325fd1fb5459229fe37f235462649f668 (diff)
x86/retpoline: Use -mfunction-return
Utilize -mfunction-return=thunk-extern when available to have the compiler replace RET instructions with direct JMPs to the symbol __x86_return_thunk. This does not affect assembler (.S) sources, only C sources. -mfunction-return=thunk-extern has been available since gcc 7.3 and clang 15. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Josh Poimboeuf <[email protected]> Tested-by: Nick Desaulniers <[email protected]> Signed-off-by: Borislav Petkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions