Commit a39818a3 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

objtool/powerpc: Implement arch_pc_relative_reloc()



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

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent c984aef8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -82,6 +82,15 @@ unsigned long arch_jump_destination(struct instruction *insn)
	return insn->offset + insn->immediate;
}

bool arch_pc_relative_reloc(struct reloc *reloc)
{
	/*
	 * The powerpc build only allows certain relocation types, see
	 * relocs_check.sh, and none of those accepted are PC relative.
	 */
	return false;
}

void arch_initial_func_cfi_state(struct cfi_init_state *state)
{
	int i;
+2 −0
Original line number Diff line number Diff line
@@ -95,4 +95,6 @@ bool arch_is_rethunk(struct symbol *sym);

int arch_rewrite_retpolines(struct objtool_file *file);

bool arch_pc_relative_reloc(struct reloc *reloc);

#endif /* _ARCH_H */