From owner-p4-projects@FreeBSD.ORG Wed Aug 16 21:05:35 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 7BEB716A4E1; Wed, 16 Aug 2006 21:05:35 +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 4436F16A4DD for ; Wed, 16 Aug 2006 21:05:35 +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 0FE2E43D46 for ; Wed, 16 Aug 2006 21:05:35 +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 k7GL5YNO031645 for ; Wed, 16 Aug 2006 21:05:34 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7GL5YSL031642 for perforce@freebsd.org; Wed, 16 Aug 2006 21:05:34 GMT (envelope-from jb@freebsd.org) Date: Wed, 16 Aug 2006 21:05:34 GMT Message-Id: <200608162105.k7GL5YSL031642@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 104298 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:05:35 -0000 http://perforce.freebsd.org/chv.cgi?CH=104298 Change 104298 by jb@jb_freebsd2 on 2006/08/16 21:04:54 It seems the caching is being implemented in a different way. This is like trying to guess lotto numbers. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/_libelf.h#5 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/_libelf.h#5 (text+ko) ==== @@ -86,18 +86,6 @@ size_t e_rawsize; /* size of uninterpreted bytes */ unsigned int e_version; /* file version */ - /* - * Cached data in host byte order. Pointers are to malloc'ed - * memory and the dimensions of the arrays are in the relevant - * header. - */ - Elf32_Ehdr e_eh32; /* 32-bit ELF header */ - Elf64_Ehdr e_eh64; /* 64-bit ELF header */ - Elf32_Phdr *e_ph32; /* Ptr to the 32-bit program header array */ - Elf64_Phdr *e_ph64; /* Ptr to the 64-bit program header array */ - Elf32_Shdr *e_sh32; /* Ptr to the 32-bit section header array */ - Elf64_Shdr *e_sh64; /* Ptr to the 64-bit section header array */ - union { struct { /* ar(1) archives */ off_t e_next; @@ -114,6 +102,14 @@ Elf32_Ehdr *e_ehdr32; Elf64_Ehdr *e_ehdr64; } e_ehdr; + union { + Elf32_Phdr *e_phdr32; + Elf64_Phdr *e_phdr64; + } e_phdr; + union { + Elf32_Shdr *e_shdr32; + Elf64_Shdr *e_shdr64; + } e_shdr; } e_elf; } e_u; };