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/kexec-elf-rel.c | |
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/kexec-elf-rel.c')
-rw-r--r-- | kexec/kexec-elf-rel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/kexec-elf-rel.c b/kexec/kexec-elf-rel.c index c625f30..9a6e63d 100644 --- a/kexec/kexec-elf-rel.c +++ b/kexec/kexec-elf-rel.c @@ -408,7 +408,7 @@ int elf_rel_load(struct mem_ehdr *ehdr, struct kexec_info *info, dbgprintf("sym: %s value: %lx addr: %lx\n", name, value, address); - machine_apply_elf_rel(ehdr, rel.r_type, + machine_apply_elf_rel(ehdr, &sym, rel.r_type, (void *)location, address, value); } } |