Re: [PATCH v3 0/2] objtool: altinstructions fix and cleanup

From: Josh Poimboeuf
Date: Sat Sep 04 2021 - 00:47:01 EST


On Sun, Aug 22, 2021 at 06:50:35PM -0400, Joe Lawrence wrote:
> This version won't eat your memory and swap when building the entire
> kernel. Apologies to Andy who discovered this over the weekend.
>
> Tested full build and boot w/o problem. The vmlinux sections, relocs,
> size, etc. all appear to be the same before and after this set.
> External tooling (kpatch-build) is happy, too.
>
> v3:
> - fix bug introduced in arch_decode_instruction() [andy]
>
> v2:
> - drop the sec->len update from the first patch [josh]
> - rip out sec->len as suggested [josh]
>
>
> Joe Lawrence (2):
> objtool: make .altinstructions section entry size consistent
> objtool: remove redundant len value from struct section

Thanks! Queueing up for testing.

--
Josh