From: Julien Thierry <jthierry@redhat.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: jpoimboe@redhat.com, peterz@infradead.org, raphael.gault@arm.com, catalin.marinas@arm.com, will@kernel.org, Julien Thierry <jthierry@redhat.com> Subject: [RFC v5 07/57] objtool: orc: Refactor ORC API for other architectures to implement. Date: Thu, 9 Jan 2020 16:02:10 +0000 [thread overview] Message-ID: <20200109160300.26150-8-jthierry@redhat.com> (raw) In-Reply-To: <20200109160300.26150-1-jthierry@redhat.com> From: Raphael Gault <raphael.gault@arm.com> The ORC unwinder is only supported on x86 at the moment and should thus be in the x86 architecture code. In order not to break the whole structure in case another architecture decides to support the ORC unwinder via objtool, move the implementation be done in the architecture dependent code. Signed-off-by: Raphael Gault <raphael.gault@arm.com> [J.T. Rebase on orc name changes, Move arch_orc_read_unwind_hints() to orc.h, Reword commit message to use imperative language] Signed-off-by: Julien Thierry <jthierry@redhat.com> --- tools/objtool/Build | 2 - tools/objtool/arch/x86/Build | 2 + tools/objtool/{ => arch/x86}/orc_dump.c | 4 +- tools/objtool/{ => arch/x86}/orc_gen.c | 104 ++++++++++++++++++++++-- tools/objtool/check.c | 99 +--------------------- tools/objtool/orc.h | 5 +- 6 files changed, 109 insertions(+), 107 deletions(-) rename tools/objtool/{ => arch/x86}/orc_dump.c (98%) rename tools/objtool/{ => arch/x86}/orc_gen.c (66%) diff --git a/tools/objtool/Build b/tools/objtool/Build index 8dc4f0848362..d069d26d97fa 100644 --- a/tools/objtool/Build +++ b/tools/objtool/Build @@ -2,8 +2,6 @@ objtool-y += arch/$(SRCARCH)/ objtool-y += builtin-check.o objtool-y += builtin-orc.o objtool-y += check.o -objtool-y += orc_gen.o -objtool-y += orc_dump.o objtool-y += elf.o objtool-y += special.o objtool-y += objtool.o diff --git a/tools/objtool/arch/x86/Build b/tools/objtool/arch/x86/Build index 7c5004008e97..e43fd6fa0ee1 100644 --- a/tools/objtool/arch/x86/Build +++ b/tools/objtool/arch/x86/Build @@ -1,4 +1,6 @@ objtool-y += decode.o +objtool-y += orc_dump.o +objtool-y += orc_gen.o inat_tables_script = ../arch/x86/tools/gen-insn-attr-x86.awk inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt diff --git a/tools/objtool/orc_dump.c b/tools/objtool/arch/x86/orc_dump.c similarity index 98% rename from tools/objtool/orc_dump.c rename to tools/objtool/arch/x86/orc_dump.c index 13ccf775a83a..cfe8f96bdd68 100644 --- a/tools/objtool/orc_dump.c +++ b/tools/objtool/arch/x86/orc_dump.c @@ -4,8 +4,8 @@ */ #include <unistd.h> -#include "orc.h" -#include "warn.h" +#include "../../orc.h" +#include "../../warn.h" static const char *reg_name(unsigned int reg) { diff --git a/tools/objtool/orc_gen.c b/tools/objtool/arch/x86/orc_gen.c similarity index 66% rename from tools/objtool/orc_gen.c rename to tools/objtool/arch/x86/orc_gen.c index 29bee7bd212a..e8be41a1bf94 100644 --- a/tools/objtool/orc_gen.c +++ b/tools/objtool/arch/x86/orc_gen.c @@ -6,11 +6,11 @@ #include <stdlib.h> #include <string.h> -#include "orc.h" -#include "check.h" -#include "warn.h" +#include "../../orc.h" +#include "../../check.h" +#include "../../warn.h" -int orc_init(struct objtool_file *file) +int arch_orc_init(struct objtool_file *file) { struct instruction *insn; @@ -116,7 +116,7 @@ static int orc_create_entry(struct section *u_sec, struct section *ip_relasec, return 0; } -int orc_create_sections(struct objtool_file *file) +int arch_orc_create_sections(struct objtool_file *file) { struct instruction *insn, *prev_insn; struct section *sec, *u_sec, *ip_relasec; @@ -209,3 +209,97 @@ int orc_create_sections(struct objtool_file *file) return 0; } + +int arch_orc_read_unwind_hints(struct objtool_file *file) +{ + struct section *sec, *relasec; + struct rela *rela; + struct unwind_hint *hint; + struct instruction *insn; + struct cfi_reg *cfa; + int i; + + sec = find_section_by_name(file->elf, ".discard.unwind_hints"); + if (!sec) + return 0; + + relasec = sec->rela; + if (!relasec) { + WARN("missing .rela.discard.unwind_hints section"); + return -1; + } + + if (sec->len % sizeof(struct unwind_hint)) { + WARN("struct unwind_hint size mismatch"); + return -1; + } + + file->hints = true; + + for (i = 0; i < sec->len / sizeof(struct unwind_hint); i++) { + hint = (struct unwind_hint *)sec->data->d_buf + i; + + rela = find_rela_by_dest(sec, i * sizeof(*hint)); + if (!rela) { + WARN("can't find rela for unwind_hints[%d]", i); + return -1; + } + + insn = find_insn(file, rela->sym->sec, rela->addend); + if (!insn) { + WARN("can't find insn for unwind_hints[%d]", i); + return -1; + } + + cfa = &insn->state.cfa; + + if (hint->type == UNWIND_HINT_TYPE_SAVE) { + insn->save = true; + continue; + + } else if (hint->type == UNWIND_HINT_TYPE_RESTORE) { + insn->restore = true; + insn->hint = true; + continue; + } + + insn->hint = true; + + switch (hint->sp_reg) { + case ORC_REG_UNDEFINED: + cfa->base = CFI_UNDEFINED; + break; + case ORC_REG_SP: + cfa->base = CFI_SP; + break; + case ORC_REG_BP: + cfa->base = CFI_BP; + break; + case ORC_REG_SP_INDIRECT: + cfa->base = CFI_SP_INDIRECT; + break; + case ORC_REG_R10: + cfa->base = CFI_R10; + break; + case ORC_REG_R13: + cfa->base = CFI_R13; + break; + case ORC_REG_DI: + cfa->base = CFI_DI; + break; + case ORC_REG_DX: + cfa->base = CFI_DX; + break; + default: + WARN_FUNC("unsupported unwind_hint sp base reg %d", + insn->sec, insn->offset, hint->sp_reg); + return -1; + } + + cfa->offset = hint->sp_offset; + insn->state.type = hint->type; + insn->state.end = hint->end; + } + + return 0; +} diff --git a/tools/objtool/check.c b/tools/objtool/check.c index dd155095251c..2c5ccf61510a 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -1167,99 +1167,6 @@ static int add_jump_table_alts(struct objtool_file *file) return 0; } -static int read_unwind_hints(struct objtool_file *file) -{ - struct section *sec, *relasec; - struct rela *rela; - struct unwind_hint *hint; - struct instruction *insn; - struct cfi_reg *cfa; - int i; - - sec = find_section_by_name(file->elf, ".discard.unwind_hints"); - if (!sec) - return 0; - - relasec = sec->rela; - if (!relasec) { - WARN("missing .rela.discard.unwind_hints section"); - return -1; - } - - if (sec->len % sizeof(struct unwind_hint)) { - WARN("struct unwind_hint size mismatch"); - return -1; - } - - file->hints = true; - - for (i = 0; i < sec->len / sizeof(struct unwind_hint); i++) { - hint = (struct unwind_hint *)sec->data->d_buf + i; - - rela = find_rela_by_dest(sec, i * sizeof(*hint)); - if (!rela) { - WARN("can't find rela for unwind_hints[%d]", i); - return -1; - } - - insn = find_insn(file, rela->sym->sec, rela->addend); - if (!insn) { - WARN("can't find insn for unwind_hints[%d]", i); - return -1; - } - - cfa = &insn->state.cfa; - - if (hint->type == UNWIND_HINT_TYPE_SAVE) { - insn->save = true; - continue; - - } else if (hint->type == UNWIND_HINT_TYPE_RESTORE) { - insn->restore = true; - insn->hint = true; - continue; - } - - insn->hint = true; - - switch (hint->sp_reg) { - case ORC_REG_UNDEFINED: - cfa->base = CFI_UNDEFINED; - break; - case ORC_REG_SP: - cfa->base = CFI_SP; - break; - case ORC_REG_BP: - cfa->base = CFI_BP; - break; - case ORC_REG_SP_INDIRECT: - cfa->base = CFI_SP_INDIRECT; - break; - case ORC_REG_R10: - cfa->base = CFI_R10; - break; - case ORC_REG_R13: - cfa->base = CFI_R13; - break; - case ORC_REG_DI: - cfa->base = CFI_DI; - break; - case ORC_REG_DX: - cfa->base = CFI_DX; - break; - default: - WARN_FUNC("unsupported unwind_hint sp base reg %d", - insn->sec, insn->offset, hint->sp_reg); - return -1; - } - - cfa->offset = hint->sp_offset; - insn->state.type = hint->type; - insn->state.end = hint->end; - } - - return 0; -} static int read_retpoline_hints(struct objtool_file *file) { @@ -1359,7 +1266,7 @@ static int decode_sections(struct objtool_file *file) if (ret) return ret; - ret = read_unwind_hints(file); + ret = arch_orc_read_unwind_hints(file); if (ret) return ret; @@ -2481,11 +2388,11 @@ int check(const char *_objname, bool orc) } if (orc) { - ret = orc_init(&file); + ret = arch_orc_init(&file); if (ret < 0) goto out; - ret = orc_create_sections(&file); + ret = arch_orc_create_sections(&file); if (ret < 0) goto out; diff --git a/tools/objtool/orc.h b/tools/objtool/orc.h index cd44417487e4..ffda072cf4ad 100644 --- a/tools/objtool/orc.h +++ b/tools/objtool/orc.h @@ -10,8 +10,9 @@ struct objtool_file; -int orc_init(struct objtool_file *file); -int orc_create_sections(struct objtool_file *file); +int arch_orc_init(struct objtool_file *file); +int arch_orc_create_sections(struct objtool_file *file); +int arch_orc_read_unwind_hints(struct objtool_file *file); int orc_dump(const char *objname); -- 2.21.0
WARNING: multiple messages have this Message-ID (diff)
From: Julien Thierry <jthierry@redhat.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Julien Thierry <jthierry@redhat.com>, peterz@infradead.org, catalin.marinas@arm.com, raphael.gault@arm.com, jpoimboe@redhat.com, will@kernel.org Subject: [RFC v5 07/57] objtool: orc: Refactor ORC API for other architectures to implement. Date: Thu, 9 Jan 2020 16:02:10 +0000 [thread overview] Message-ID: <20200109160300.26150-8-jthierry@redhat.com> (raw) In-Reply-To: <20200109160300.26150-1-jthierry@redhat.com> From: Raphael Gault <raphael.gault@arm.com> The ORC unwinder is only supported on x86 at the moment and should thus be in the x86 architecture code. In order not to break the whole structure in case another architecture decides to support the ORC unwinder via objtool, move the implementation be done in the architecture dependent code. Signed-off-by: Raphael Gault <raphael.gault@arm.com> [J.T. Rebase on orc name changes, Move arch_orc_read_unwind_hints() to orc.h, Reword commit message to use imperative language] Signed-off-by: Julien Thierry <jthierry@redhat.com> --- tools/objtool/Build | 2 - tools/objtool/arch/x86/Build | 2 + tools/objtool/{ => arch/x86}/orc_dump.c | 4 +- tools/objtool/{ => arch/x86}/orc_gen.c | 104 ++++++++++++++++++++++-- tools/objtool/check.c | 99 +--------------------- tools/objtool/orc.h | 5 +- 6 files changed, 109 insertions(+), 107 deletions(-) rename tools/objtool/{ => arch/x86}/orc_dump.c (98%) rename tools/objtool/{ => arch/x86}/orc_gen.c (66%) diff --git a/tools/objtool/Build b/tools/objtool/Build index 8dc4f0848362..d069d26d97fa 100644 --- a/tools/objtool/Build +++ b/tools/objtool/Build @@ -2,8 +2,6 @@ objtool-y += arch/$(SRCARCH)/ objtool-y += builtin-check.o objtool-y += builtin-orc.o objtool-y += check.o -objtool-y += orc_gen.o -objtool-y += orc_dump.o objtool-y += elf.o objtool-y += special.o objtool-y += objtool.o diff --git a/tools/objtool/arch/x86/Build b/tools/objtool/arch/x86/Build index 7c5004008e97..e43fd6fa0ee1 100644 --- a/tools/objtool/arch/x86/Build +++ b/tools/objtool/arch/x86/Build @@ -1,4 +1,6 @@ objtool-y += decode.o +objtool-y += orc_dump.o +objtool-y += orc_gen.o inat_tables_script = ../arch/x86/tools/gen-insn-attr-x86.awk inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt diff --git a/tools/objtool/orc_dump.c b/tools/objtool/arch/x86/orc_dump.c similarity index 98% rename from tools/objtool/orc_dump.c rename to tools/objtool/arch/x86/orc_dump.c index 13ccf775a83a..cfe8f96bdd68 100644 --- a/tools/objtool/orc_dump.c +++ b/tools/objtool/arch/x86/orc_dump.c @@ -4,8 +4,8 @@ */ #include <unistd.h> -#include "orc.h" -#include "warn.h" +#include "../../orc.h" +#include "../../warn.h" static const char *reg_name(unsigned int reg) { diff --git a/tools/objtool/orc_gen.c b/tools/objtool/arch/x86/orc_gen.c similarity index 66% rename from tools/objtool/orc_gen.c rename to tools/objtool/arch/x86/orc_gen.c index 29bee7bd212a..e8be41a1bf94 100644 --- a/tools/objtool/orc_gen.c +++ b/tools/objtool/arch/x86/orc_gen.c @@ -6,11 +6,11 @@ #include <stdlib.h> #include <string.h> -#include "orc.h" -#include "check.h" -#include "warn.h" +#include "../../orc.h" +#include "../../check.h" +#include "../../warn.h" -int orc_init(struct objtool_file *file) +int arch_orc_init(struct objtool_file *file) { struct instruction *insn; @@ -116,7 +116,7 @@ static int orc_create_entry(struct section *u_sec, struct section *ip_relasec, return 0; } -int orc_create_sections(struct objtool_file *file) +int arch_orc_create_sections(struct objtool_file *file) { struct instruction *insn, *prev_insn; struct section *sec, *u_sec, *ip_relasec; @@ -209,3 +209,97 @@ int orc_create_sections(struct objtool_file *file) return 0; } + +int arch_orc_read_unwind_hints(struct objtool_file *file) +{ + struct section *sec, *relasec; + struct rela *rela; + struct unwind_hint *hint; + struct instruction *insn; + struct cfi_reg *cfa; + int i; + + sec = find_section_by_name(file->elf, ".discard.unwind_hints"); + if (!sec) + return 0; + + relasec = sec->rela; + if (!relasec) { + WARN("missing .rela.discard.unwind_hints section"); + return -1; + } + + if (sec->len % sizeof(struct unwind_hint)) { + WARN("struct unwind_hint size mismatch"); + return -1; + } + + file->hints = true; + + for (i = 0; i < sec->len / sizeof(struct unwind_hint); i++) { + hint = (struct unwind_hint *)sec->data->d_buf + i; + + rela = find_rela_by_dest(sec, i * sizeof(*hint)); + if (!rela) { + WARN("can't find rela for unwind_hints[%d]", i); + return -1; + } + + insn = find_insn(file, rela->sym->sec, rela->addend); + if (!insn) { + WARN("can't find insn for unwind_hints[%d]", i); + return -1; + } + + cfa = &insn->state.cfa; + + if (hint->type == UNWIND_HINT_TYPE_SAVE) { + insn->save = true; + continue; + + } else if (hint->type == UNWIND_HINT_TYPE_RESTORE) { + insn->restore = true; + insn->hint = true; + continue; + } + + insn->hint = true; + + switch (hint->sp_reg) { + case ORC_REG_UNDEFINED: + cfa->base = CFI_UNDEFINED; + break; + case ORC_REG_SP: + cfa->base = CFI_SP; + break; + case ORC_REG_BP: + cfa->base = CFI_BP; + break; + case ORC_REG_SP_INDIRECT: + cfa->base = CFI_SP_INDIRECT; + break; + case ORC_REG_R10: + cfa->base = CFI_R10; + break; + case ORC_REG_R13: + cfa->base = CFI_R13; + break; + case ORC_REG_DI: + cfa->base = CFI_DI; + break; + case ORC_REG_DX: + cfa->base = CFI_DX; + break; + default: + WARN_FUNC("unsupported unwind_hint sp base reg %d", + insn->sec, insn->offset, hint->sp_reg); + return -1; + } + + cfa->offset = hint->sp_offset; + insn->state.type = hint->type; + insn->state.end = hint->end; + } + + return 0; +} diff --git a/tools/objtool/check.c b/tools/objtool/check.c index dd155095251c..2c5ccf61510a 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -1167,99 +1167,6 @@ static int add_jump_table_alts(struct objtool_file *file) return 0; } -static int read_unwind_hints(struct objtool_file *file) -{ - struct section *sec, *relasec; - struct rela *rela; - struct unwind_hint *hint; - struct instruction *insn; - struct cfi_reg *cfa; - int i; - - sec = find_section_by_name(file->elf, ".discard.unwind_hints"); - if (!sec) - return 0; - - relasec = sec->rela; - if (!relasec) { - WARN("missing .rela.discard.unwind_hints section"); - return -1; - } - - if (sec->len % sizeof(struct unwind_hint)) { - WARN("struct unwind_hint size mismatch"); - return -1; - } - - file->hints = true; - - for (i = 0; i < sec->len / sizeof(struct unwind_hint); i++) { - hint = (struct unwind_hint *)sec->data->d_buf + i; - - rela = find_rela_by_dest(sec, i * sizeof(*hint)); - if (!rela) { - WARN("can't find rela for unwind_hints[%d]", i); - return -1; - } - - insn = find_insn(file, rela->sym->sec, rela->addend); - if (!insn) { - WARN("can't find insn for unwind_hints[%d]", i); - return -1; - } - - cfa = &insn->state.cfa; - - if (hint->type == UNWIND_HINT_TYPE_SAVE) { - insn->save = true; - continue; - - } else if (hint->type == UNWIND_HINT_TYPE_RESTORE) { - insn->restore = true; - insn->hint = true; - continue; - } - - insn->hint = true; - - switch (hint->sp_reg) { - case ORC_REG_UNDEFINED: - cfa->base = CFI_UNDEFINED; - break; - case ORC_REG_SP: - cfa->base = CFI_SP; - break; - case ORC_REG_BP: - cfa->base = CFI_BP; - break; - case ORC_REG_SP_INDIRECT: - cfa->base = CFI_SP_INDIRECT; - break; - case ORC_REG_R10: - cfa->base = CFI_R10; - break; - case ORC_REG_R13: - cfa->base = CFI_R13; - break; - case ORC_REG_DI: - cfa->base = CFI_DI; - break; - case ORC_REG_DX: - cfa->base = CFI_DX; - break; - default: - WARN_FUNC("unsupported unwind_hint sp base reg %d", - insn->sec, insn->offset, hint->sp_reg); - return -1; - } - - cfa->offset = hint->sp_offset; - insn->state.type = hint->type; - insn->state.end = hint->end; - } - - return 0; -} static int read_retpoline_hints(struct objtool_file *file) { @@ -1359,7 +1266,7 @@ static int decode_sections(struct objtool_file *file) if (ret) return ret; - ret = read_unwind_hints(file); + ret = arch_orc_read_unwind_hints(file); if (ret) return ret; @@ -2481,11 +2388,11 @@ int check(const char *_objname, bool orc) } if (orc) { - ret = orc_init(&file); + ret = arch_orc_init(&file); if (ret < 0) goto out; - ret = orc_create_sections(&file); + ret = arch_orc_create_sections(&file); if (ret < 0) goto out; diff --git a/tools/objtool/orc.h b/tools/objtool/orc.h index cd44417487e4..ffda072cf4ad 100644 --- a/tools/objtool/orc.h +++ b/tools/objtool/orc.h @@ -10,8 +10,9 @@ struct objtool_file; -int orc_init(struct objtool_file *file); -int orc_create_sections(struct objtool_file *file); +int arch_orc_init(struct objtool_file *file); +int arch_orc_create_sections(struct objtool_file *file); +int arch_orc_read_unwind_hints(struct objtool_file *file); int orc_dump(const char *objname); -- 2.21.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-01-09 16:04 UTC|newest] Thread overview: 189+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-09 16:02 [RFC v5 00/57] objtool: Add support for arm64 Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 01/57] objtool: check: Remove redundant checks on operand type Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 02/57] objtool: check: Clean instruction state before each function validation Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 03/57] objtool: check: Use arch specific values in restore_reg() Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 04/57] objtool: check: Ignore empty alternative groups Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-21 16:30 ` Josh Poimboeuf 2020-01-21 16:30 ` Josh Poimboeuf 2020-01-23 11:45 ` Julien Thierry 2020-01-23 11:45 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 05/57] objtool: Add abstraction for computation of symbols offsets Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 06/57] objtool: Give ORC functions consistent name Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` Julien Thierry [this message] 2020-01-09 16:02 ` [RFC v5 07/57] objtool: orc: Refactor ORC API for other architectures to implement Julien Thierry 2020-01-09 16:02 ` [RFC v5 08/57] objtool: Make ORC support optional Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-21 16:37 ` Josh Poimboeuf 2020-01-21 16:37 ` Josh Poimboeuf 2020-01-23 11:45 ` Julien Thierry 2020-01-23 11:45 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 09/57] objtool: Move registers and control flow to arch-dependent code Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 10/57] objtool: Split generic and arch specific CFI definitions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 11/57] objtool: Abstract alternative special case handling Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-20 14:54 ` Peter Zijlstra 2020-01-20 14:54 ` Peter Zijlstra 2020-01-23 11:45 ` Julien Thierry 2020-01-23 11:45 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 12/57] objtool: check: Allow jumps from an alternative group to itself Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-20 14:56 ` Peter Zijlstra 2020-01-20 14:56 ` Peter Zijlstra 2020-01-21 10:30 ` Will Deacon 2020-01-21 10:30 ` Will Deacon 2020-01-21 17:33 ` Josh Poimboeuf 2020-01-21 17:33 ` Josh Poimboeuf 2020-01-23 13:42 ` Julien Thierry 2020-01-23 13:42 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 13/57] objtool: Refactor switch-tables code to support other architectures Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 14/57] objtool: Do not look for STT_NOTYPE symbols Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-11 18:49 ` kbuild test robot 2020-01-13 10:20 ` Julien Thierry 2020-01-13 10:20 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 15/57] objtool: Support addition to set frame pointer Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 16/57] objtool: Support restoring BP from the stack without POP Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 17/57] objtool: Make stack validation more generic Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 18/57] objtool: Support multiple stack_op per instruction Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 19/57] objtool: arm64: Add required implementation for supporting the aarch64 architecture in objtool Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 20/57] objtool: arm64: Decode unknown instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 21/57] objtool: arm64: Decode simple data processing instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 22/57] objtool: arm64: Decode add/sub immediate instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 23/57] objtool: arm64: Decode logical data processing instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 24/57] objtool: arm64: Decode system instructions not affecting the flow Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 25/57] objtool: arm64: Decode calls to higher EL Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 26/57] objtool: arm64: Decode brk instruction Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 27/57] objtool: arm64: Decode instruction triggering context switch Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 28/57] objtool: arm64: Decode branch instructions with PC relative immediates Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 29/57] objtool: arm64: Decode branch to register instruction Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 30/57] objtool: arm64: Decode basic load/stores Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 31/57] objtool: arm64: Decode load/store with register offset Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 32/57] objtool: arm64: Decode load/store register pair instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 33/57] objtool: arm64: Decode FP/SIMD load/store instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 34/57] objtool: arm64: Decode load/store exclusive Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 35/57] objtool: arm64: Decode atomic load/store Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 36/57] objtool: arm64: Decode pointer auth load instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 37/57] objtool: arm64: Decode load acquire/store release Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 38/57] objtool: arm64: Decode load/store with memory tag Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 39/57] objtool: arm64: Decode load literal Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 40/57] objtool: arm64: Decode register data processing instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 41/57] objtool: arm64: Decode FP/SIMD " Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 42/57] objtool: arm64: Decode SVE instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 43/57] gcc-plugins: objtool: Add plugin to detect switch table on arm64 Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 44/57] objtool: arm64: Implement functions to add switch tables alternatives Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-15 16:37 ` Raphael Gault 2020-01-15 16:37 ` Raphael Gault 2020-01-17 8:28 ` Julien Thierry 2020-01-17 8:28 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 45/57] objtool: arm64: Enable stack validation for arm64 Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-11 14:42 ` kbuild test robot 2020-01-11 20:30 ` kbuild test robot 2020-01-09 16:02 ` [RFC v5 46/57] arm64: alternative: Mark .altinstr_replacement as containing executable instructions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-12 11:08 ` kbuild test robot 2020-01-13 3:38 ` kbuild test robot 2020-01-09 16:02 ` [RFC v5 47/57] arm64: assembler: Add macro to annotate asm function having non standard stack-frame Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-21 10:30 ` Will Deacon 2020-01-21 10:30 ` Will Deacon 2020-01-23 13:45 ` Julien Thierry 2020-01-23 13:45 ` Julien Thierry 2020-01-23 14:40 ` Will Deacon 2020-01-23 14:40 ` Will Deacon 2020-01-09 16:02 ` [RFC v5 48/57] arm64: sleep: Prevent stack frame warnings from objtool Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 49/57] arm64: kvm: Annotate non-standard stack frame functions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 50/57] arm64: kernel: Add exception on kuser32 to prevent stack analysis Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 51/57] arm64: crypto: Add exceptions for crypto object " Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 52/57] arm64: kernel: Annotate non-standard stack frame functions Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 53/57] arm64: Generate no-ops to pad executable section Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 54/57] arm64: Move constant to rodata Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 55/57] arm64: Mark sigreturn32.o as containing non standard code Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:02 ` [RFC v5 56/57] arm64: entry: Avoid empty alternatives entries Julien Thierry 2020-01-09 16:02 ` Julien Thierry 2020-01-09 16:51 ` Mark Rutland 2020-01-09 16:51 ` Mark Rutland 2020-01-21 10:30 ` Will Deacon 2020-01-21 10:30 ` Will Deacon 2020-01-09 16:03 ` [RFC v5 57/57] arm64: crypto: Remove redundant branch Julien Thierry 2020-01-09 16:03 ` Julien Thierry 2020-01-12 8:42 ` [RFC v5 00/57] objtool: Add support for arm64 Nathan Chancellor 2020-01-12 8:42 ` Nathan Chancellor 2020-01-13 7:57 ` Julien Thierry 2020-01-13 7:57 ` Julien Thierry 2020-01-21 10:31 ` Will Deacon 2020-01-21 10:31 ` Will Deacon 2020-01-21 17:08 ` Nick Desaulniers 2020-01-21 17:08 ` Nick Desaulniers 2020-01-21 18:06 ` Will Deacon 2020-01-21 18:06 ` Will Deacon 2020-01-21 18:30 ` Josh Poimboeuf 2020-01-21 18:30 ` Josh Poimboeuf 2020-01-22 14:47 ` Will Deacon 2020-01-22 14:47 ` Will Deacon 2020-01-13 17:18 ` Nick Desaulniers 2020-01-13 17:18 ` Nick Desaulniers 2020-01-20 15:07 ` Peter Zijlstra 2020-01-20 15:07 ` Peter Zijlstra 2020-01-21 17:50 ` Josh Poimboeuf 2020-01-21 17:50 ` Josh Poimboeuf 2020-01-23 13:56 ` Julien Thierry 2020-01-23 13:56 ` Julien Thierry 2020-01-21 10:30 ` Will Deacon 2020-01-21 10:30 ` Will Deacon 2020-01-23 13:52 ` Julien Thierry 2020-01-23 13:52 ` Julien Thierry 2020-01-23 14:35 ` Will Deacon 2020-01-23 14:35 ` Will Deacon 2020-01-23 15:11 ` Julien Thierry 2020-01-23 15:11 ` Julien Thierry
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200109160300.26150-8-jthierry@redhat.com \ --to=jthierry@redhat.com \ --cc=catalin.marinas@arm.com \ --cc=jpoimboe@redhat.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=peterz@infradead.org \ --cc=raphael.gault@arm.com \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.