From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16312 invoked by alias); 9 Feb 2005 16:58:53 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 16202 invoked from network); 9 Feb 2005 16:58:47 -0000 Received: from unknown (205.217.158.180) by sourceware.org with QMTP; 9 Feb 2005 16:58:47 -0000 Received: (qmail 21392 invoked by uid 10); 9 Feb 2005 16:58:47 -0000 Received: (qmail 6787 invoked by uid 500); 9 Feb 2005 16:58:38 -0000 Mail-Followup-To: julian@codesourcery.com, binutils@sources.redhat.com, rearnsha@gcc.gnu.org To: Richard Earnshaw Cc: Julian Brown , binutils@sources.redhat.com Subject: Re: [PATCH] Indicate dependency on personality routines for ARM EHABI References: <420A38B6.3010609@codesourcery.com> <1107967723.4376.9.camel@pc960.cambridge.arm.com> From: Ian Lance Taylor Date: Wed, 09 Feb 2005 17:42:00 -0000 In-Reply-To: <1107967723.4376.9.camel@pc960.cambridge.arm.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-02/txt/msg00169.txt.bz2 Richard Earnshaw writes: > > More generally, I think it's kind of dubious to use a zero reloc to > > mean anything at all. And why do you need a relocation entry? Why is > > it not sufficient to enter the symbol in the symbol table as an > > undefined symbol? Is the use of a zero reloc mandated by the ARM ABI? > > Because the unwind module only weakly links to the personality modules > (but it is the one that ends up calling them). > > The module that needs the unwinding has to provide the strong reference > to ensure that it gets included in the link set. > > Doing it this way ensures that only personality modules that are needed > get included in the final image. I would expect a strong undefined symbol would achieve the same effect without the relocation entry. But if the ABI requires the relocation entry, that is fine. Ian