The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v6 0/9] Add jump table support for objtool on LoongArch
@ 2024-12-17  1:08 Tiezhu Yang
  2024-12-17  1:08 ` [PATCH v6 1/9] objtool: Handle various symbol types of rodata Tiezhu Yang
                   ` (10 more replies)
  0 siblings, 11 replies; 37+ messages in thread
From: Tiezhu Yang @ 2024-12-17  1:08 UTC (permalink / raw)
  To: Huacai Chen, Josh Poimboeuf, Peter Zijlstra
  Cc: loongarch, amd-gfx, linux-kernel

This version is based on tip/tip.git objtool/core branch [1], add some weak
and arch-specific functions to make the generic code more readable, tested
with the latest upstream mainline Binutils, GCC and Clang.

The first 6 patches are preparation for patch #7 to enable jump table for
objtool on LoongArch, the last 2 patches are small enough to fix objtool
warnings "funcA() falls through to next function funcB()", one is under
arch/loongarch and the other is under drm/amd/display.

v6:
  -- Add arch_reloc_size() for x86 and ppc.
  -- Call arch_reloc_size() directly in add_jump_table().
  -- Refine arch_adjust_offset() for LoongArch.
  -- Rename arch_adjust_offset() to arch_jump_table_sym_offset(). 
  -- Get each table size of rodata in time for switch table.
  -- Update the commit message to make it more clear.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=objtool/core

Tiezhu Yang (9):
  objtool: Handle various symbol types of rodata
  objtool: Handle different entry size of rodata
  objtool: Handle PC relative relocation type
  objtool: Handle unreachable entry of rodata
  objtool/LoongArch: Add support for switch table
  objtool/LoongArch: Add support for goto table
  LoongArch: Enable jump table for objtool
  LoongArch: Convert unreachable() to BUG()
  drm/amd/display: Mark dc_fixpt_from_fraction() noinline

 arch/loongarch/Kconfig                        |   3 +
 arch/loongarch/Makefile                       |   6 +-
 arch/loongarch/kernel/machine_kexec.c         |   4 +-
 .../drm/amd/display/dc/basics/fixpt31_32.c    |   2 +-
 tools/objtool/arch/loongarch/decode.c         |  28 ++-
 .../objtool/arch/loongarch/include/arch/elf.h |   7 +
 tools/objtool/arch/loongarch/special.c        | 159 +++++++++++++++++-
 tools/objtool/arch/powerpc/decode.c           |  15 ++
 tools/objtool/arch/x86/decode.c               |  13 ++
 tools/objtool/check.c                         |  28 ++-
 tools/objtool/include/objtool/arch.h          |   3 +
 11 files changed, 251 insertions(+), 17 deletions(-)

-- 
2.42.0


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

end of thread, other threads:[~2025-03-14 20:04 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17  1:08 [PATCH v6 0/9] Add jump table support for objtool on LoongArch Tiezhu Yang
2024-12-17  1:08 ` [PATCH v6 1/9] objtool: Handle various symbol types of rodata Tiezhu Yang
2024-12-17  1:08 ` [PATCH v6 2/9] objtool: Handle different entry size " Tiezhu Yang
2025-02-11 14:19   ` [PATCH] objtool: remove duplicate case value R_PPC64_REL32 Kexy Biscuit
2025-02-11 23:34     ` Josh Poimboeuf
2024-12-17  1:08 ` [PATCH v6 3/9] objtool: Handle PC relative relocation type Tiezhu Yang
2024-12-17  1:09 ` [PATCH v6 4/9] objtool: Handle unreachable entry of rodata Tiezhu Yang
2025-02-10 21:17   ` Josh Poimboeuf
2024-12-17  1:09 ` [PATCH v6 5/9] objtool/LoongArch: Add support for switch table Tiezhu Yang
2024-12-17  1:09 ` [PATCH v6 6/9] objtool/LoongArch: Add support for goto table Tiezhu Yang
2024-12-17  1:09 ` [PATCH v6 7/9] LoongArch: Enable jump table for objtool Tiezhu Yang
2025-03-14 20:03   ` [tip: objtool/core] " tip-bot2 for Tiezhu Yang
2024-12-17  1:09 ` [PATCH v6 8/9] LoongArch: Convert unreachable() to BUG() Tiezhu Yang
2024-12-17  1:50 ` [PATCH v6 9/9] drm/amd/display: Mark dc_fixpt_from_fraction() noinline Tiezhu Yang
2024-12-18 14:36   ` Huacai Chen
2024-12-18 19:05     ` Josh Poimboeuf
2024-12-18 19:22       ` Alex Deucher
2024-12-20  5:02         ` Tiezhu Yang
2024-12-20 10:31           ` Peter Zijlstra
2024-12-20 22:34             ` Nathan Chancellor
2024-12-21  7:40               ` Xi Ruoyao
2024-12-22  4:27                 ` Tiezhu Yang
2024-12-23 21:46                   ` Nathan Chancellor
2024-12-25  9:43                     ` Tiezhu Yang
2025-01-04 13:58 ` [PATCH v6 0/9] Add jump table support for objtool on LoongArch Huacai Chen
2025-01-11  6:57 ` Tiezhu Yang
2025-01-15  1:34   ` Josh Poimboeuf
2025-02-10  6:07     ` Tiezhu Yang
2025-02-10 21:26       ` Josh Poimboeuf
2025-02-11 11:59         ` Huacai Chen
2025-02-11 23:30           ` Josh Poimboeuf
2025-02-12  7:22             ` Huacai Chen
2025-02-13  2:51               ` Josh Poimboeuf
2025-02-17  3:13                 ` Huacai Chen
2025-02-18 17:46                   ` Josh Poimboeuf
2025-02-19  9:49                     ` Huacai Chen
2025-02-20 21:33                       ` Josh Poimboeuf

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