From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10178 invoked by alias); 8 May 2017 20:55:43 -0000 Mailing-List: contact gnu-gabi-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: gnu-gabi-owner@sourceware.org Received: (qmail 10091 invoked by uid 89); 8 May 2017 20:55:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*ppluzhnikov, Rather, H*r:sk:mail-it, our X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-it0-f54.google.com Received: from mail-it0-f54.google.com (HELO mail-it0-f54.google.com) (209.85.214.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 May 2017 20:55:40 +0000 Received: by mail-it0-f54.google.com with SMTP id e65so45883526ita.1 for ; Mon, 08 May 2017 13:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MMHB4Ukomr8UicohH1JBBM+7GCORfgGsm8m8V0WC4Z0=; b=D26godSDCGAup6Utk6To3T76QvhMWJbnCrJBoGbAY3dIaaRvr1RdhCVogwIeuqLLdG ZD7D/qCWwT35KlMA2iNALAiw4OvAR9Jlyg8Ewjmlzo54Uois6Z3QIt2iBUU9ilDPBmUD ePT4aJqeU7hi3F/pi6MsZ27ByLe0vDPPjHCdXnbSjpkEdGfSRef16lN0MMlCOdQmYWUe 4W2htIskFL0jbMOanTOpOAdHQWrg0S3Rd49rn0PcKDqXeQtPwKuv997kYPMLHqR0p57I sXgN3zzDy7Yw6dhpYyGpiEdz2CoRdhLaIcwrWQJ7fThY1AA4qj42xl7veesbCFcV5Uk/ lLAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MMHB4Ukomr8UicohH1JBBM+7GCORfgGsm8m8V0WC4Z0=; b=j0v7F+lKaEX2QONEl3UjumpnejoXZEfjwxUfu2lQXify90lOgvtSMC8ycC6pFastSh Ptlw10L/oha70WuUQT9KazIMJWMPVq2BphCFlVH6kGJYCejcGd3pWL0RupJYb/urxI7V 9++UHdkAT69sIMcr0fmX306lBOo06umS8jENkm9rKA0C6uErnydQh8bhmggwa53G5/o3 bF+weFI+PqKMlEnAT3lc5eLP9gDzFLp4n40aH6J+iuXHv+eKPbZpZU4wmFiaUFOWKvK3 9YbxjA/mum7gXoHlsEVqNtkhwvkHRNtbMoW8ie++8ik48jlxj6mKvwaQYFLTR55//tvB RKZA== X-Gm-Message-State: AN3rC/6sgUUirzYEN+AY3elhnqY+18cgCFbpPmW+ibVJ4eGbuPBGj3D0 RF4+d107tHq3lJMdOMhFUyx+RTAzhIkH X-Received: by 10.36.166.4 with SMTP id q4mr18790774ite.66.1494276941833; Mon, 08 May 2017 13:55:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.129.170 with HTTP; Mon, 8 May 2017 13:55:40 -0700 (PDT) In-Reply-To: <7e698a5f-32d7-6549-7e23-8850b85e6c10@gmail.com> References: <8737cosnym.fsf@localhost.localdomain.i-did-not-set--mail-host-address--so-tickle-me> <7e698a5f-32d7-6549-7e23-8850b85e6c10@gmail.com> From: "Sriraman Tallam via gnu-gabi" Reply-To: Sriraman Tallam Date: Sun, 01 Jan 2017 00:00:00 -0000 Message-ID: Subject: Re: Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section To: hegdesmailbox@gmail.com Cc: Florian Weimer , David Edelsohn , Rafael Avila de Espindola , Binutils Development , Alan Modra , Cary Coutant , gnu-gabi@sourceware.org, Xinliang David Li , Sterling Augustine , Paul Pluzhnikov , Ian Lance Taylor , "H.J. Lu" , Rahul Chaudhry , Luis Lozano , Peter Collingbourne , Rui Ueyama , llvm-dev@lists.llvm.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00016.txt.bz2 +llvm-dev Discussion here: https://sourceware.org/ml/gnu-gabi/2017-q2/msg00000.html On Tue, May 2, 2017 at 10:17 AM, Suprateeka R Hegde wrote: > On 02-May-2017 12:05 AM, Florian Weimer wrote: >> On 05/01/2017 08:28 PM, Suprateeka R Hegde wrote: >>> So the ratio shows ~96% is RELATIVE reloc. And only ~4% others. This is >>> not the case on HP-UX/Itanium. But as I said, this comparison does not >>> make sense as the runtime architecture and ISA are totally different. >> >> It could be that HP-UX was written in a way to reduce relative >> relocations, > > Rather, the Itanium runtime architecture itself provides a way to reduce > them. > >> or that the final executables aren't actually PIC anymore. > > I was referring to shlibs (PIC) on HP-UX and it was implicit in my mind. > Sorry for that. > > I just built a large C++ shlib both on HP-UX/Itanium with our aCC > compiler and Linux x86-64 using GCC-6.2. The sources are almost same > with only a couple of lines differing between platforms. > > (HP-UX/Linux) > Total: 12224/38311 > RELATIVE: 18/6397 > > I will try to check the reason for such a huge difference in RELATIVE > reloc count. It might be useful for this discussion (just a guess) > > -- > Supra