From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29658 invoked by alias); 17 Feb 2011 18:07:09 -0000 Received: (qmail 29639 invoked by uid 22791); 17 Feb 2011 18:07:07 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Feb 2011 18:07:04 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1HI6nFn012549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Feb 2011 13:06:49 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p1HI6mwo001616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Feb 2011 13:06:48 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p1HI6laO005749; Thu, 17 Feb 2011 19:06:47 +0100 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p1HI6kl2005747; Thu, 17 Feb 2011 19:06:46 +0100 Date: Thu, 17 Feb 2011 18:07:00 -0000 From: Jakub Jelinek To: Jan Hubicka Cc: "H.J. Lu" , Jan Beulich , "H. Peter Anvin" , GCC Development , x32-abi@googlegroups.com, Binutils , GNU C Library Subject: Re: x32 psABI draft version 0.2 Message-ID: <20110217180646.GB30899@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek References: <4D5C2DD2.10608@zytor.com> <4D5CEBDE02000078000325A2@vpn.id2.novell.com> <20110217142916.GI13037@sunsite.ms.mff.cuni.cz> <20110217152233.GB11346@atrey.karlin.mff.cuni.cz> <20110217154452.GA18799@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110217154452.GA18799@kam.mff.cuni.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00225.txt.bz2 On Thu, Feb 17, 2011 at 04:44:53PM +0100, Jan Hubicka wrote: > > > According to Mozilla folks however REL+RELA scheme used by EABI leads > > > to significandly smaller libxul.so size > > > > > > According to http://glandium.org/blog/?p=1177 the difference is about 4-5MB > > > (out of approximately 20-30MB shared lib) > > > > This is orthogonal to x32 psABI. > > Understood. I am just pointing out that x86-64 Mozilla suffers from startup > problems (extra 5MB of disk read needed) compared to both x86 and ARM EABI > because x86-64 ABI is RELA only. If x86-64 ABI was REL+RELA like EABI is, we > would not have this problem here. libxul.so has < 200000 relocs, so 5MB is total size of .rela section in 64-bit ELF, you don't magically save those 5MB by using REL. You save just 1.5MB. And for x32 we'd be talking about 2.5MB for RELA vs. 1.6MB for REL. There might be better ways how to get the numbers down. Jakub