summaryrefslogtreecommitdiff
path: root/libdwfl/elf-from-memory.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-06-15 03:07:46 +0000
committerUlrich Drepper <drepper@redhat.com>2006-06-15 03:07:46 +0000
commitd5a7519085f35bf48c9b33b8698835b24caa2da1 (patch)
tree9f61add4cad3bb4f545e93e837c24df8ba601af8 /libdwfl/elf-from-memory.c
parent595d0e7e9f368f04f0d9e04b902c8dc1073103e6 (diff)
downloadelfutils-d5a7519085f35bf48c9b33b8698835b24caa2da1.tar.gz
merge of b305fe132f91c44a41a877a48efc3bdfda785b73
and c4704f02db5f42d7bcdb2feafc6199d7ac132da3
Diffstat (limited to 'libdwfl/elf-from-memory.c')
-rw-r--r--libdwfl/elf-from-memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdwfl/elf-from-memory.c b/libdwfl/elf-from-memory.c
index 90a0c4d8..2a174759 100644
--- a/libdwfl/elf-from-memory.c
+++ b/libdwfl/elf-from-memory.c
@@ -1,5 +1,5 @@
/* Reconstruct an ELF file by reading the segments out of remote memory.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -338,7 +338,7 @@ elf_from_remote_memory (GElf_Addr ehdr_vma,
xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64;
xlatefrom.d_buf = &ehdr.e64;
xlateto.d_buf = buffer;
- if (elf32_xlatetof (&xlateto, &xlatefrom,
+ if (elf64_xlatetof (&xlateto, &xlatefrom,
ehdr.e64.e_ident[EI_DATA]) == NULL)
goto libelf_error;
break;
@@ -354,7 +354,7 @@ elf_from_remote_memory (GElf_Addr ehdr_vma,
if (elf == NULL)
{
free (buffer);
- return NULL;
+ goto libelf_error;
}
elf->flags |= ELF_F_MALLOCED;