summaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-07-18 11:23:37 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-07-18 11:23:37 +0000
commita241f76c3398e49813ebf6ef1d8bed996b4f26d4 (patch)
tree2e945cf721e3ab8ac2683bf38c12a904f45bc108 /bfd/elf-bfd.h
parent9a631ff25dc35f75f5e75bc8d74cdb0fdb6db464 (diff)
downloadbinutils-redhat-a241f76c3398e49813ebf6ef1d8bed996b4f26d4.tar.gz
* elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
* elf.c (bfd_section_from_r_symndx): Don't cache bfd section of symbol. Instead cache ELF section index. Remove redundant checks of st_shndx.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 572e89b3d5..5db52f3c9f 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -423,7 +423,7 @@ struct sym_sec_cache
{
bfd *abfd;
unsigned long indx[LOCAL_SYM_CACHE_SIZE];
- asection *sec[LOCAL_SYM_CACHE_SIZE];
+ unsigned int shndx[LOCAL_SYM_CACHE_SIZE];
};
/* Constant information held for an ELF backend. */