summaryrefslogtreecommitdiff
path: root/kexec/arch/sh
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2016-02-26 18:03:11 +1100
committerSimon Horman <horms@verge.net.au>2016-03-24 13:59:57 +0900
commit4a2ae3a39c64dc43e9d094be9541253234ff4822 (patch)
treee8f88ea2978b506a63a5918c47c7d422ec22309d /kexec/arch/sh
parent75f7bc488432eb70aab052cc7c83a5cd7555dd3f (diff)
Pass struct mem_sym into machine_apply_elf_rel()
On PowerPC64 ABIv2 we need to look at the symbol to determine if it has a local entry point. Pass struct mem_sym into machine_apply_elf_rel() so we can. Signed-off-by: Anton Blanchard <anton@samba.org> Tested-by: Dave Young <dyoung@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/sh')
-rw-r--r--kexec/arch/sh/kexec-elf-rel-sh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kexec/arch/sh/kexec-elf-rel-sh.c b/kexec/arch/sh/kexec-elf-rel-sh.c
index 0bfc45e..3993ee8 100644
--- a/kexec/arch/sh/kexec-elf-rel-sh.c
+++ b/kexec/arch/sh/kexec-elf-rel-sh.c
@@ -28,8 +28,9 @@ int machine_verify_elf_rel(struct mem_ehdr *ehdr)
return 1;
}
-void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type,
- void *orig_loc, unsigned long UNUSED(address), unsigned long relocation)
+void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr),
+ struct mem_sym *UNUSED(sym), unsigned long r_type, void *orig_loc,
+ unsigned long UNUSED(address), unsigned long relocation)
{
uint32_t *location = orig_loc;
uint32_t value;