From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16195 invoked by alias); 3 Dec 2012 16:44:17 -0000 Received: (qmail 16180 invoked by uid 22791); 3 Dec 2012 16:44:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from cheddar.halon.org.uk (HELO cheddar.halon.org.uk) (217.10.144.130) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Dec 2012 16:44:08 +0000 Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.72) (envelope-from ) id 1TfZ7m-00060w-L0; Mon, 03 Dec 2012 16:44:06 +0000 Received: from steve by tack.local with local (Exim 4.80) (envelope-from ) id 1TfZ7a-0001MC-PV; Mon, 03 Dec 2012 16:43:54 +0000 Date: Mon, 03 Dec 2012 16:44:00 -0000 From: Steve McIntyre To: "Joseph S. Myers" Cc: libc-ports@sourceware.org, Carlos O'Donell , Marcus Shawcroft Subject: Re: [PATCH] ARM: Identify the hard-float ABI in older ARM binaries Message-ID: <20121203164354.GJ22509@einval.com> References: <20121203153446.GD22509@einval.com> <20121203153747.GE22509@einval.com> <20121203154154.GF22509@einval.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-attached: none User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00013.txt.bz2 Hi Joseph, On Mon, Dec 03, 2012 at 04:00:21PM +0000, Joseph S. Myers wrote: >On Mon, 3 Dec 2012, Steve McIntyre wrote: > >> Hi, >> >> I expect this one to be more controversial and I'll understand if >> people don't want to accept it! It's a variation on the code that's in >> use today in Debian/Ubuntu to be able to distinguish between soft- and >> hard-float ABI libraries. In time, the new ELF flags will make this >> obsolete. Until that time, this adds a fallback for older binaries >> created before those flags went into binutils. > >As previously explained, it's not appropriate for the dynamic linker to >examine the section view of the ELF file this way; the use of ELF header >flags is the right approach. Does that apply to ldconfig as well as ld.so? Again, I understand if people don't like this ugly approach; it's just a fallback that will end up being used in Debian/Ubuntu anyway, and may be helpful in other places where there are lots of pre-flag hard-float binaries. Cheers, -- Steve McIntyre steve.mcintyre@linaro.org Linaro.org | Open source software for ARM SoCs