Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

objtool/powerpc: Implement arch_pc_relative_reloc()

Provide an implementation for arch_pc_relative_reloc(). It is needed to
pass the build once 61c6065ef7ec ("objtool: Allow !PC relative
relocations") is merged.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

+11
+9
tools/objtool/arch/powerpc/decode.c
··· 82 82 return insn->offset + insn->immediate; 83 83 } 84 84 85 + bool arch_pc_relative_reloc(struct reloc *reloc) 86 + { 87 + /* 88 + * The powerpc build only allows certain relocation types, see 89 + * relocs_check.sh, and none of those accepted are PC relative. 90 + */ 91 + return false; 92 + } 93 + 85 94 void arch_initial_func_cfi_state(struct cfi_init_state *state) 86 95 { 87 96 int i;
+2
tools/objtool/include/objtool/arch.h
··· 95 95 96 96 int arch_rewrite_retpolines(struct objtool_file *file); 97 97 98 + bool arch_pc_relative_reloc(struct reloc *reloc); 99 + 98 100 #endif /* _ARCH_H */