Date: Wed, 16 Aug 2006 21:04:32 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104297 for review Message-ID: <200608162104.k7GL4WgW031502@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104297 Change 104297 by jb@jb_freebsd2 on 2006/08/16 21:03:59 Remove code that got implemented in a different way. Sigh. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/elf_memory.c#4 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/elf_memory.c#4 (text+ko) ==== @@ -38,7 +38,6 @@ elf_memory(char *image, size_t sz) { Elf *e; - Elf_Data dst, src; if (LIBELF_PRIVATE(version) == EV_NONE) { LIBELF_SET_ERROR(SEQUENCE, 0); @@ -80,35 +79,6 @@ else e->e_kind = ELF_K_NONE; - if (e->e_kind == ELF_K_ELF) { - src.d_buf = image; - src.d_off = 0; - src.d_align = 0; - src.d_type = ELF_T_EHDR; - src.d_version = EV_CURRENT; - - dst.d_off = 0; - dst.d_align = 0; - dst.d_type = ELF_T_EHDR; - dst.d_version = EV_CURRENT; - - if (e->e_class == ELFCLASS32) { - dst.d_buf = &e->e_eh32; - dst.d_size = sizeof(e->e_eh32); - src.d_size = sizeof(e->e_eh32); - } else if (e->e_class == ELFCLASS64) { - dst.d_buf = &e->e_eh64; - dst.d_size = sizeof(e->e_eh64); - src.d_size = sizeof(e->e_eh64); - } else { - LIBELF_SET_ERROR(CLASS, e->e_class); - return (NULL); - } - - if (gelf_xlatetom(e, &dst, &src, e->e_byteorder) == NULL) - return (NULL); - } - return (e); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608162104.k7GL4WgW031502>