From owner-p4-projects@FreeBSD.ORG Wed Aug 16 21:04:40 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B0E4216A4EC; Wed, 16 Aug 2006 21:04:40 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E0716A4E7 for ; Wed, 16 Aug 2006 21:04:40 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5122E43D78 for ; Wed, 16 Aug 2006 21:04:33 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7GL4XeB031505 for ; Wed, 16 Aug 2006 21:04:33 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7GL4WgW031502 for perforce@freebsd.org; Wed, 16 Aug 2006 21:04:32 GMT (envelope-from jb@freebsd.org) Date: Wed, 16 Aug 2006 21:04:32 GMT Message-Id: <200608162104.k7GL4WgW031502@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 104297 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 21:04:40 -0000 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); }