This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: SHN_XINDEX support is broken
On Sun, Feb 06, 2005 at 10:18:59AM -0800, H. J. Lu wrote:
> I have been looking at the change. I am not 100% sure if it will be
> always correct. Will the symbol table be read in by SHT_REL/SHT_RELA?
Yes. elf.c:1940
/* Get the symbol table. */
if ((elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_SYMTAB
|| elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_DYNSYM)
&& ! bfd_section_from_shdr (abfd, hdr->sh_link))
return FALSE;
> What if a file doesn't have them and does have SHT_GROUP?
group_signature loads the symbol table.
elf.c:450
/* First we need to ensure the symbol table is available. */
if (! bfd_section_from_shdr (abfd, ghdr->sh_link))
return NULL;
--
Alan Modra
IBM OzLabs - Linux Technology Centre