From owner-svn-src-head@FreeBSD.ORG Thu Sep 9 18:59:57 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A98210656C1; Thu, 9 Sep 2010 18:59:57 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 0CF238FC13; Thu, 9 Sep 2010 18:59:57 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.4/8.14.4) with ESMTP id o89Ixuu4030553; Thu, 9 Sep 2010 11:59:56 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.4/8.14.4/Submit) id o89Ixu8E030552; Thu, 9 Sep 2010 11:59:56 -0700 (PDT) (envelope-from sgk) Date: Thu, 9 Sep 2010 11:59:56 -0700 From: Steve Kargl To: Kai Wang Message-ID: <20100909185956.GA30545@troutmask.apl.washington.edu> References: <201009091851.o89IpoFR019035@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201009091851.o89IpoFR019035@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r212373 - head/lib/libelf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 18:59:57 -0000 On Thu, Sep 09, 2010 at 06:51:50PM +0000, Kai Wang wrote: > Author: kaiw > Date: Thu Sep 9 18:51:50 2010 > New Revision: 212373 > URL: http://svn.freebsd.org/changeset/base/212373 > > Log: > libelf is overly strict about the type and alignment of Elf_Data > objects inside one ELF section, which prevents the creation of a ELF > section with mixed data types. For example, gcc LTO use libelf to > create a .gnu_lto_XXX section that contains integers and a string > table, which doesn't work with our libelf implementation. > > The changes made in this commit include: > * Allow Elf_Data type to be different than section type. > * Relax Elf_Data alignment check. > * Align each Elf_Data by their own alignment instead of section alignment. > Thanks you! -- Steve