From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27768 invoked by alias); 24 Jul 2006 19:07:43 -0000 Received: (qmail 27647 invoked by uid 22791); 24 Jul 2006 19:07:42 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.12) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 24 Jul 2006 19:07:37 +0000 Received: from evilmonkey.corp.google.com (evilmonkey.corp.google.com [172.24.0.124]) by smtp-out.google.com with ESMTP id k6OJ7GL9010043; Mon, 24 Jul 2006 12:07:16 -0700 Received: from smtp.corp.google.com (baraddur.corp.google.com [192.168.15.228]) by evilmonkey.corp.google.com with ESMTP id k6OJ7ACt028558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 Jul 2006 12:07:10 -0700 Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) (authenticated bits=0) by smtp.corp.google.com (8.13.7/8.13.6) with ESMTP id k6OJ795N021107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 24 Jul 2006 12:07:09 -0700 To: Michael Eager Cc: Santosh , binutils@sourceware.org Subject: Re: Multiple relocation in ELF References: <000001c6af0f$4a9a8a50$eb00a8c0@santosh> <20060724140259.GE6872@bubble.grove.modra.org> <44C510D3.5020702@eagercon.com> From: Ian Lance Taylor Date: Mon, 24 Jul 2006 19:07:00 -0000 In-Reply-To: <44C510D3.5020702@eagercon.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00284.txt.bz2 Michael Eager writes: > Can you give an example of how this might be done? I don't think that > it is possible to apply two relocations to a single location in ELF. You need to write the relocation semantics so that it will work. It won't work in general. The 64-bit MIPS ABI is an example of a processor supplement which applies multiple relocations to a single address. However, it does it in a different way, by changing the reloc format. In general it's very odd to want to add two relocatable symbols. The result is unlikely to be useful. Ian