Skip to content

objtool: Avoid pointless modifications

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2objtool: Optimize re-writing jump_labeltools/objtool/check.c+1 -13 replies
2/2objtool: Optimize/fix retpoline alternative generationtools/objtool/arch/x86/decode.c tools/objtool/check.c tools/objtool/special.c+11 -84 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] objtool: Avoid pointless modifications

While chasing that libelf warning, I started wondering why we're re-writing the elf file to begin with, the second/noinstr pass shouldn't modify the image, so we shouldn't end up in elf_write() in the first place.

These here two patches seem to cure this and should thereby also improve performance somewhat.