From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30872 invoked by alias); 4 Jul 2012 00:39:36 -0000 Received: (qmail 30859 invoked by uid 22791); 4 Jul 2012 00:39:35 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Jul 2012 00:39:22 +0000 Received: by yhr47 with SMTP id 47so7917664yhr.0 for ; Tue, 03 Jul 2012 17:39:22 -0700 (PDT) Received: by 10.68.232.232 with SMTP id tr8mr12297310pbc.73.1341362361783; Tue, 03 Jul 2012 17:39:21 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id nv6sm16530389pbc.42.2012.07.03.17.39.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Jul 2012 17:39:21 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 9AEC2EA0322; Wed, 4 Jul 2012 10:09:15 +0930 (CST) Date: Wed, 04 Jul 2012 00:39:00 -0000 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org, GNU C Library Subject: Re: PATCH: Add STB_SECONDARY support Message-ID: <20120704003915.GK16148@bubble.grove.modra.org> Mail-Followup-To: "H.J. Lu" , binutils@sourceware.org, GNU C Library References: <20120630211841.GA4159@intel.com> <20120702062405.GJ25209@bubble.grove.modra.org> <20120703082553.GE16148@bubble.grove.modra.org> <20120703143127.GH16148@bubble.grove.modra.org> <20120703234528.GI16148@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2012-07/txt/msg00057.txt.bz2 On Tue, Jul 03, 2012 at 05:18:42PM -0700, H.J. Lu wrote: > 0x0000000000000001 (NEEDED) Shared library: > [libbfd-2.22.52.20120703.so] > 0x0000000000000001 (NEEDED) Shared library: [libz.so.1] > 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] > 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] > > libbfd-2.22.52.20120703.so is linked against libiberty.a. When you build > binutils, libbfd will include a backup copy of standard functions > which don't exist > in libc.so at the time when you compile it. Even after you upgrade your > libc.so with the latest and greatest standard functions, ld stiil uses > the backup one from libiberty since ld.so searches libbfd.so before > libc.so.6. Like I said, I'm sure you could devise a way to put your backup functions in another shared library that is searched after libc.so.6 That's dead easy. Deeper nesting of shared libraries is a little more difficult, due to breadth first library search, but still possible for any given depth of libraries. I imagine this case would be rare anyway. Who really is pushing for STB_SECONDARY? Is it some hide-bound company that uses a non-ELF toolchain and doesn't want to adapt any process of theirs? -- Alan Modra Australia Development Lab, IBM