diff options
author | Magnus Damm <magnus@valinux.co.jp> | 2006-08-23 12:51:21 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-10-06 12:44:15 +0900 |
commit | 64c27ee85138921a38a958f21478eb2aad5e7b75 (patch) | |
tree | 5efd25d7c95b1c865e2c23266e3b518898a9e747 /kexec/kexec-elf-rel.c | |
parent | 32b12d965b19c72245ae195d98986a944b87f814 (diff) |
make elf_rel_build_load() use buffer from argument
elf_rel_build_load() is currently using the symbols purgatory and
purgatory_size as buffer and buffer size instead of using the arguments
passed to the function. This patch fixes this by changing the code to
use the function arguments as buffer and buffer size.
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
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 b55d2c2..8f7433c 100644 --- a/kexec/kexec-elf-rel.c +++ b/kexec/kexec-elf-rel.c @@ -417,7 +417,7 @@ void elf_rel_build_load(struct kexec_info *info, struct mem_ehdr *ehdr, int result; /* Parse the Elf file */ - result = build_elf_rel_info((char *)purgatory, purgatory_size, ehdr); + result = build_elf_rel_info(buf, len, ehdr); if (result < 0) { die("ELF rel parse failed\n"); } |