This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Avoid ld segfaults on nasm objects
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com, hpa at zytor dot com
- Date: Fri, 10 Dec 2004 15:11:58 +1030
- Subject: Re: [PATCH] Avoid ld segfaults on nasm objects
- References: <20041209142940.GG5149@sunsite.mff.cuni.cz>
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