mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-15 08:20:26 +00:00
Move init_orc_entry(), write_orc_entry(), reg_name(), orc_type_name() and print_reg() from generic orc_gen.c and orc_dump.c to arch-specific orc.c, then introduce a new function orc_print_dump() to print info. This is preparation for later patch, no functionality change. Co-developed-by: Jinyang He <hejinyang@loongson.cn> Signed-off-by: Jinyang He <hejinyang@loongson.cn> Co-developed-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
15 lines
512 B
C
15 lines
512 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _OBJTOOL_ORC_H
|
|
#define _OBJTOOL_ORC_H
|
|
|
|
#include <objtool/check.h>
|
|
|
|
int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, struct instruction *insn);
|
|
void orc_print_dump(struct elf *dummy_elf, struct orc_entry *orc, int i);
|
|
int write_orc_entry(struct elf *elf, struct section *orc_sec,
|
|
struct section *ip_sec, unsigned int idx,
|
|
struct section *insn_sec, unsigned long insn_off,
|
|
struct orc_entry *o);
|
|
|
|
#endif /* _OBJTOOL_ORC_H */
|