summaryrefslogtreecommitdiffstats
path: root/libdwfl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-06-12 23:25:17 +0000
committerUlrich Drepper <drepper@redhat.com>2006-06-12 23:25:17 +0000
commit595d0e7e9f368f04f0d9e04b902c8dc1073103e6 (patch)
treedf3eece241bf558d13521bbc6513e105d539530b /libdwfl
parentd8dcc9c17a866f18b342b3b0594c15d007b8b73b (diff)
downloadandroid_external_elfutils-595d0e7e9f368f04f0d9e04b902c8dc1073103e6.tar.gz
android_external_elfutils-595d0e7e9f368f04f0d9e04b902c8dc1073103e6.tar.bz2
android_external_elfutils-595d0e7e9f368f04f0d9e04b902c8dc1073103e6.zip
(create_verneed_data): Pretty printing.
Diffstat (limited to 'libdwfl')
-rw-r--r--libdwfl/ChangeLog5
-rw-r--r--libdwfl/elf-from-memory.c6
2 files changed, 3 insertions, 8 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 96fe56bc..1a49526d 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,8 +1,3 @@
-2006-06-13 Roland McGrath <roland@redhat.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Fix 32/64 typo.
- Use __libdwfl_seterrno for elf_memory failure.
-
2006-05-27 Ulrich Drepper <drepper@redhat.com>
* libdwfl.h: Add extern "C".
diff --git a/libdwfl/elf-from-memory.c b/libdwfl/elf-from-memory.c
index 2a174759..90a0c4d8 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, 2006 Red Hat, Inc.
+ Copyright (C) 2005 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 (elf64_xlatetof (&xlateto, &xlatefrom,
+ if (elf32_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);
- goto libelf_error;
+ return NULL;
}
elf->flags |= ELF_F_MALLOCED;