lkml.org 
[lkml]   [2021]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] objtool: altinstructions fix and cleanup
Date
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

tools/objtool/arch/x86/decode.c | 2 +-
tools/objtool/check.c | 16 ++++++++--------
tools/objtool/elf.c | 14 ++++++--------
tools/objtool/include/objtool/elf.h | 1 -
tools/objtool/orc_gen.c | 2 +-
tools/objtool/special.c | 4 ++--
6 files changed, 18 insertions(+), 21 deletions(-)

--
2.26.3

\
 
 \ /
  Last update: 2021-08-23 00:51    [W:0.062 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site