From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26297 invoked by alias); 10 Dec 2004 04:42:07 -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 26005 invoked from network); 10 Dec 2004 04:42:01 -0000 Received: from unknown (HELO gizmo06ps.bigpond.com) (144.140.71.41) by sourceware.org with SMTP; 10 Dec 2004 04:42:01 -0000 Received: (qmail 4764 invoked from network); 10 Dec 2004 04:41:59 -0000 Received: from unknown (HELO psmam12.bigpond.com) (144.135.25.103) by gizmo06ps.bigpond.com with SMTP; 10 Dec 2004 04:41:59 -0000 Received: from cpe-144-136-221-26.sa.bigpond.net.au ([144.136.221.26]) by psmam12.bigpond.com(MAM REL_3_4_2a 234/3352637) with SMTP id 3352637; Fri, 10 Dec 2004 14:41:59 +1000 Received: by bubble.modra.org (Postfix, from userid 500) id 06B1114300F; Fri, 10 Dec 2004 15:11:59 +1030 Date: Fri, 10 Dec 2004 04:42:00 -0000 From: Alan Modra To: Jakub Jelinek Cc: binutils@sources.redhat.com, hpa@zytor.com Subject: Re: [PATCH] Avoid ld segfaults on nasm objects Message-ID: <20041210044158.GB11634@bubble.modra.org> Mail-Followup-To: Jakub Jelinek , binutils@sources.redhat.com, hpa@zytor.com References: <20041209142940.GG5149@sunsite.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041209142940.GG5149@sunsite.mff.cuni.cz> User-Agent: Mutt/1.4i X-SW-Source: 2004-12/txt/msg00114.txt.bz2 On Thu, Dec 09, 2004 at 03:29:40PM +0100, Jakub Jelinek wrote: > BTW: I'm not sure what exactly is ld doing when number of sections > is bigger than 65536, particularly I don't see anything that would > remap internal symbol's st_shndx SHN_LORESERVE..SHN_HIRESERVE range Well, no, any internal symbol in that range won't be mapped. However, ld won't create normal elf sections that use these reserved indices, so the values set for st_shndx, eg. in elf_link_output_extsym from _bfd_elf_section_from_bfd_section, won't be in that range. > * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid > st_shndx on STT_SECTION sections. OK. -- Alan Modra IBM OzLabs - Linux Technology Centre