From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24405 invoked by alias); 8 Jun 2006 18:35:09 -0000 Received: (qmail 24394 invoked by uid 22791); 8 Jun 2006 18:35:08 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Jun 2006 18:35:05 +0000 Received: (qmail 18545 invoked by uid 1010); 8 Jun 2006 18:34:45 -0000 From: Richard Sandiford To: David Daney Mail-Followup-To: David Daney ,binutils@sourceware.org, richard@codesourcery.com Cc: binutils@sourceware.org Subject: Re: RFH/RFC: symbol index overflow in MIPS linker stubs... References: <44871E31.1080909@avtrex.com> <877j3rr3an.fsf@talisman.home> <4488633A.1000902@avtrex.com> <873befqzwb.fsf@talisman.home> <44886C39.2090202@avtrex.com> Date: Thu, 08 Jun 2006 18:44:00 -0000 In-Reply-To: <44886C39.2090202@avtrex.com> (David Daney's message of "Thu, 08 Jun 2006 11:28:09 -0700") Message-ID: <87y7w7pkcd.fsf@talisman.home> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-06/txt/msg00106.txt.bz2 David Daney writes: > Richard Sandiford wrote: >> David Daney writes: >> >>>There are three ways to do this: >>> >>>1) Always use a 20 byte stub. This allows for up to 2^31 - 1 dynamic >>>symbols. You are concerned that this would break IRIX tools. >> >> >> Well, "would"'s a bit a too strong. It's only a vague "might". >> It's o32 I'm particularly worried about: the o32 IRIX tools >> are a bit weird. >> >> That wouldn't be much of an argument if it wasn't fairly easy >> to do #2 or #3, of course, but it does look fairly easy. >> > > My main concern is that in _bfd_mips_elf_adjust_dynamic_symbol I need to > know the size of the stub, but I am uncertain if we will know the number > of dynamic symbols at this point so that we can choose the proper stub size. AIUI, _bfd_mips_elf_adjust_dynamic_symbol is called after _bfd_mips_elf_always_size_sections (see bfd_elf_size_dynamic_sections) so I think we're OK there. Richard