diff options
author | Anton Blanchard <anton@samba.org> | 2016-02-26 18:03:11 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-03-24 13:59:57 +0900 |
commit | 4a2ae3a39c64dc43e9d094be9541253234ff4822 (patch) | |
tree | e8f88ea2978b506a63a5918c47c7d422ec22309d /kexec/arch/arm | |
parent | 75f7bc488432eb70aab052cc7c83a5cd7555dd3f (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/arm')
-rw-r--r-- | kexec/arch/arm/kexec-elf-rel-arm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kexec/arch/arm/kexec-elf-rel-arm.c b/kexec/arch/arm/kexec-elf-rel-arm.c index 214f0cc..a939cf4 100644 --- a/kexec/arch/arm/kexec-elf-rel-arm.c +++ b/kexec/arch/arm/kexec-elf-rel-arm.c @@ -18,8 +18,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 *location, unsigned long address, unsigned long value) +void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), + struct mem_sym *UNUSED(sym), unsigned long r_type, void *location, + unsigned long address, unsigned long value) { switch(r_type) { case R_ARM_ABS32: |