From owner-svn-src-all@FreeBSD.ORG Wed Jul 21 09:05:52 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64989106564A; Wed, 21 Jul 2010 09:05:52 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5F2A68FC25; Wed, 21 Jul 2010 09:05:51 +0000 (UTC) Received: by eyh6 with SMTP id 6so1780638eyh.13 for ; Wed, 21 Jul 2010 02:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=5VSiORzxeNTua39ZGUjvq7fecBmQbmtuXgBk9gX/hos=; b=dxciV3IKBByPbdRlkT5NUcq5bborEhoHb/qoU7JOtfYUgHj+H4P4Yo7lINuEMiUDwa zldMEO5InQdOGLoVVi6uZ7sRY0HdQ1CiSsA7Nqp2dx5bgRKUkn7MWscZS0Us3q2Bc1GT JXdGnawP4bpOML8izh1fRbPl61o3cgUzc2hwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=UO9KerSCi9alCYHbZQ+DQHpxGcxpE1rLiBi7QQFgvTnz7grRid7JYvk4cwv/JvubIg M0g1CDCAYFwGW9SF1/OFTPJR4P5hyOhSyFWe4j12PFWUvKFWMQAaDwBY5mj8JkqWQBTT WKmMVf6FrjiHX/05IOqNux4Tr+Ebt0YMkQkJs= Received: by 10.213.17.7 with SMTP id q7mr5850035eba.2.1279703150200; Wed, 21 Jul 2010 02:05:50 -0700 (PDT) Received: from localhost (81-233-38-26-no36.tbcn.telia.com [81.233.38.26]) by mx.google.com with ESMTPS id v8sm53053416eeh.8.2010.07.21.02.05.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 02:05:49 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1ObVFL-00014b-RU; Wed, 21 Jul 2010 11:05:47 +0200 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id o6L95lYI004128; Wed, 21 Jul 2010 11:05:47 +0200 (CEST) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Wed, 21 Jul 2010 11:05:47 +0200 From: Kai Wang To: Roman Divacky Message-ID: <20100721090547.GA2532@viskning> References: <201007210854.o6L8skIl067227@svn.freebsd.org> <20100721085117.GA28722@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100721085117.GA28722@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r210324 - head/lib/libelf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2010 09:05:52 -0000 On Wed, Jul 21, 2010 at 10:51:17AM +0200, Roman Divacky wrote: > On Wed, Jul 21, 2010 at 08:54:46AM +0000, Kai Wang wrote: > > Author: kaiw > > Date: Wed Jul 21 08:54:46 2010 > > New Revision: 210324 > > URL: http://svn.freebsd.org/changeset/base/210324 > > > > Log: > > - Correctly handle sections of type SHT_NOBITS. For these sections: > > - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure > > that has its "d_buf" member set to NULL and "d_size" member set to > > the nominal 'size' of the section. [1] > > - Update the manual page for these functions. > > - Fix a memory leak in an error handling path inside elf_getdata(). > > - Use _libelf_allocate_data() in elf_newdata() for consistency. > > this is the fix that fixes -flto with gcc45? No. This fixes is irrelevant to gcc LTO. Actually, this partially fixed the empty section problem reported by kan@. I'll write you and kan@ a private mail about kan@'s patch later. Kai