mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] objtool: altinstructions fix and cleanup
@ 2021-08-22 22:50 Joe Lawrence
  2021-08-22 22:50 ` [PATCH v3 1/2] objtool: make .altinstructions section entry size consistent Joe Lawrence
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Joe Lawrence @ 2021-08-22 22:50 UTC (permalink / raw)
  To: x86, Josh Poimboeuf, Peter Zijlstra
  Cc: linux-kernel, Miroslav Benes, Andy Lavr

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-06 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22 22:50 [PATCH v3 0/2] objtool: altinstructions fix and cleanup Joe Lawrence
2021-08-22 22:50 ` [PATCH v3 1/2] objtool: make .altinstructions section entry size consistent Joe Lawrence
2021-10-06 22:46   ` [tip: objtool/core] objtool: Make " tip-bot2 for Joe Lawrence
2021-08-22 22:50 ` [PATCH v3 2/2] objtool: remove redundant len value from struct section Joe Lawrence
2021-10-06 22:46   ` [tip: objtool/core] objtool: Remove redundant 'len' field " tip-bot2 for Joe Lawrence
2021-09-03 11:16 ` [PATCH v3 0/2] objtool: altinstructions fix and cleanup Miroslav Benes
2021-09-04  4:46 ` Josh Poimboeuf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®