[PATCH v5 00/10] Add jump table support for objtool on LoongArch

Tiezhu Yang posted 10 patches 1 year ago
There is a newer version of this series
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         |  31 +++-
.../objtool/arch/loongarch/include/arch/elf.h |   7 +
tools/objtool/arch/loongarch/special.c        | 164 +++++++++++++++++-
tools/objtool/check.c                         |  36 +++-
tools/objtool/include/objtool/arch.h          |   3 +
9 files changed, 239 insertions(+), 17 deletions(-)
[PATCH v5 00/10] Add jump table support for objtool on LoongArch
Posted by Tiezhu Yang 1 year ago
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.

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

Tiezhu Yang (10):
  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: Get each table size of rodata
  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         |  31 +++-
 .../objtool/arch/loongarch/include/arch/elf.h |   7 +
 tools/objtool/arch/loongarch/special.c        | 164 +++++++++++++++++-
 tools/objtool/check.c                         |  36 +++-
 tools/objtool/include/objtool/arch.h          |   3 +
 9 files changed, 239 insertions(+), 17 deletions(-)

-- 
2.42.0