[PATCH 0/2] objtool: Avoid pointless modifications

From: Peter Zijlstra
Date: Thu Oct 07 2021 - 17:27:27 EST


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.