RFC objtool: Enable and implement --mcount option on powerpc
Get series with b4
b4 am [email protected]Versions newest first
- v2 RFC Latest7 patches 14 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | objtool: Fix SEGFAULTtools/ | +1 | 0 replies | |
| 2/7 | objtool: Use target file endianness instead of a compiled constanttools/ tools/ tools/ +3 more | +27 | 0 replies | |
| 3/7 | objtool: Use target file class size instead of a compiled constanttools/ tools/ tools/ | +23 | 1 reply | |
| 4/7 | objtool: Add --mnop as an option to --mcountMakefile arch/ scripts/ +3 more | +30 | 0 replies | |
| 5/7 | objtool: Enable objtool to run only on files with ftrace enabledscripts/ | +2 | 5 replies | |
| 6/7 | objtool/powerpc: Enable objtool to be built on ppcarch/ tools/ tools/ +4 more | +136 | 0 replies | |
| 7/7 | objtool/powerpc: Add --mcount specific implementationarch/ tools/ tools/ +2 more | +38 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/7] objtool: Enable and implement --mcount option on powerpc
This draft series adds PPC32 support to Sathvika's series. Verified on pmac32 on QEMU.
It should in principle also work for PPC64 BE but for the time being something goes wrong. In the beginning I had a segfaut hence the first patch. But I still get no mcount section in the files.
Christophe Leroy (3):
objtool: Fix SEGFAULT
objtool: Use target file endianness instead of a compiled constant
objtool: Use target file class size instead of a compiled constant
Sathvika Vasireddy (4):
objtool: Add --mnop as an option to --mcount
objtool: Enable objtool to run only on files with ftrace enabled objtool/powerpc: Enable objtool to be built on ppc objtool/powerpc: Add --mcount specific implementation
Makefile | 4 +- arch/powerpc/Kconfig | 2 + arch/x86/Kconfig | 1 + scripts/Makefile.build | 5 +- tools/objtool/arch/powerpc/Build | 2 + tools/objtool/arch/powerpc/decode.c | 88 +++++++++++++++++++ .../arch/powerpc/include/arch/cfi_regs.h | 11 +++ tools/objtool/arch/powerpc/include/arch/elf.h | 8 ++ .../arch/powerpc/include/arch/special.h | 21 +++++ tools/objtool/arch/powerpc/special.c | 19 ++++ .../arch/x86/include/arch/endianness.h | 9 -- tools/objtool/builtin-check.c | 14 +++ tools/objtool/check.c | 51 ++++++----- tools/objtool/elf.c | 23 ++++- tools/objtool/include/objtool/builtin.h | 1 + tools/objtool/include/objtool/elf.h | 9 ++ tools/objtool/include/objtool/endianness.h | 29 +++--- tools/objtool/orc_dump.c | 11 ++- tools/objtool/orc_gen.c | 4 +- tools/objtool/special.c | 3 +- 20 files changed, 257 insertions(+), 58 deletions(-) create mode 100644 tools/objtool/arch/powerpc/Build create mode 100644 tools/objtool/arch/powerpc/decode.c create mode 100644 tools/objtool/arch/powerpc/include/arch/cfi_regs.h create mode 100644 tools/objtool/arch/powerpc/include/arch/elf.h create mode 100644 tools/objtool/arch/powerpc/include/arch/special.h create mode 100644 tools/objtool/arch/powerpc/special.c delete mode 100644 tools/objtool/arch/x86/include/arch/endianness.h
Signature · 1 line
2.35.3