From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22162 invoked by alias); 24 Jul 2006 14:03:06 -0000 Received: (qmail 22150 invoked by uid 22791); 24 Jul 2006 14:03:06 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 24 Jul 2006 14:03:03 +0000 Received: from grove.modra.org ([60.226.255.233]) by omta05sl.mx.bigpond.com with ESMTP id <20060724140300.STTJ24880.omta05sl.mx.bigpond.com@grove.modra.org>; Mon, 24 Jul 2006 14:03:00 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id 140031BA7D2; Mon, 24 Jul 2006 23:33:00 +0930 (CST) Date: Mon, 24 Jul 2006 14:03:00 -0000 From: Alan Modra To: Santosh Cc: binutils@sourceware.org Subject: Re: Multiple relocation in ELF Message-ID: <20060724140259.GE6872@bubble.grove.modra.org> Mail-Followup-To: Santosh , binutils@sourceware.org References: <000001c6af0f$4a9a8a50$eb00a8c0@santosh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001c6af0f$4a9a8a50$eb00a8c0@santosh> User-Agent: Mutt/1.4i 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/msg00280.txt.bz2 On Mon, Jul 24, 2006 at 04:22:41PM +0530, Santosh wrote: > ADDIU r2, RELOCATABLE_SYMBOL + RELOCATABLE_SYMBOL > > In ELF, we can emit relocation information for only one symbol having > its symbol index, offset and relocation value to apply. But when I try > to give more than one relocatable symbol, it cannot be represented by > ELF format. ELF can support multiple symbols in a relocation expression. The trick is to apply multiple suitably defined relocations to the one location. -- Alan Modra IBM OzLabs - Linux Technology Centre