[PATCH] Avoid ld segfaults on nasm objects
Alan Modra
amodra@bigpond.net.au
Fri Dec 10 04:42:00 GMT 2004
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
More information about the Binutils
mailing list