From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26144 invoked by alias); 3 Dec 2008 20:12:09 -0000 Received: (qmail 26133 invoked by uid 22791); 3 Dec 2008 20:12:08 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f21.google.com (HELO mail-ew0-f21.google.com) (209.85.219.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Dec 2008 20:11:12 +0000 Received: by ewy14 with SMTP id 14so110988ewy.0 for ; Wed, 03 Dec 2008 12:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:mail-followup-to:cc :subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=9cI5MlTca/8WkSMjghoRTCfgOtxlPcN6UeEEwVWxP3k=; b=JtLYZcIwz9rOg0R2ccKK9jCHifycDP5ebNNRhb3KQJemfmnMssiCorEjqx1rrZi72p ZgUmOtDJSjZmjRxIgsEFCJHpfOkSgtQYZsVyQgYa3KpmCV4MVUaaKKXab7M2FYv9wdSl pIF9pZOtFvqOeEFoWucZQPFBh4q7BlVqxe5Ug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:mail-followup-to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=JLugRYunwDP3P+6i5ivMZWTIXslcj31fVTz6sxsCW8kLto2EoWbAH+GqvRkkmb63vf 3m8IWXVqgiDGJBwViks0GLQA09OmEaV2mUB47IKJpMURfcD/3i4Jrc5uNXPS3rwU5sGA AeR28UeFHWiRTmUDCHpAHSMZgd26ft3BFJNI8= Received: by 10.210.121.8 with SMTP id t8mr15721304ebc.180.1228335068638; Wed, 03 Dec 2008 12:11:08 -0800 (PST) Received: from localhost (79-75-71-222.dynamic.dsl.as9105.com [79.75.71.222]) by mx.google.com with ESMTPS id g9sm3750790gvc.31.2008.12.03.12.11.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Dec 2008 12:11:07 -0800 (PST) From: Richard Sandiford To: Daniel Jacobowitz Mail-Followup-To: Daniel Jacobowitz ,Catherine Moore , prelink@sourceware.org, rdsandiford@googlemail.com Cc: Catherine Moore , prelink@sourceware.org Subject: Re: [patch] Add support for new mips relocs References: <4936D3D3.6030306@codesourcery.com> <87r64pcapp.fsf@firetop.home> <20081203200226.GA28907@caradoc.them.org> Date: Wed, 03 Dec 2008 20:12:00 -0000 In-Reply-To: <20081203200226.GA28907@caradoc.them.org> (Daniel Jacobowitz's message of "Wed\, 3 Dec 2008 15\:02\:26 -0500") Message-ID: <87myfdc946.fsf@firetop.home> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact prelink-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: prelink-owner@sourceware.org X-SW-Source: 2008-q4/txt/msg00004.txt.bz2 Daniel Jacobowitz writes: > Catherine, please preserve attribution when you can; I wrote all > this. Thanks. > > On Wed, Dec 03, 2008 at 07:36:34PM +0000, Richard Sandiford wrote: >> I'm probably missing something, sorry, but how does the patch handle >> the property mentioned in the original comment? Relocations must never >> resolve to another object's (traditional) lazy-binding stub. > > This does happen, but the code that does it is far away: in this case, > in glibc. The dynamic loader will output which object it bound the > relocation to, and it will be one that contains a definition rather > than a lazy binding stub. Oh, OK. So an old glibc will still work with old objects? (Sorry, it's been so long since I wrote this stuff, and I don't really have time to refresh my memory. It might well be that, because I had to return something in the default case, I thought I might as well return the more accurate RTYPE_CLASS_PLT, even if it didn't make any practical difference.) Richard