From 6258e7486eb3eed6e50005946795c5fbf73aa106 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 13 Mar 2007 06:22:40 +0000 Subject: propagate from branch 'com.redhat.elfutils.roland.pending' (head e0c7abd450c9e49093cfae30af8a22782a74a403) to branch 'com.redhat.elfutils' (head 2c784d50eee72e33972c333138a3a28df304da63) --- libdwfl/elf-from-memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdwfl/elf-from-memory.c') diff --git a/libdwfl/elf-from-memory.c b/libdwfl/elf-from-memory.c index 2a174759..a292210a 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, 2006, 2007 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -154,7 +154,7 @@ elf_from_remote_memory (GElf_Addr ehdr_vma, case ELFCLASS64: xlatefrom.d_size = sizeof (Elf64_Ehdr); - if (elf32_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL) + if (elf64_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL) goto libelf_error; phoff = ehdr.e64.e_phoff; phnum = ehdr.e64.e_phnum; -- cgit v1.2.3