diff options
author | Alan Modra <amodra@gmail.com> | 2007-07-18 11:23:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-07-18 11:23:37 +0000 |
commit | a5d1b3b53e1db512253b2036c841645ff45df311 (patch) | |
tree | ccdfe43af77d187d21947c80e42e9b84b8b37c94 /bfd/elf-bfd.h | |
parent | 816efef9d255393f20ce20806109417ec8ae6f1e (diff) | |
download | gdb-a5d1b3b53e1db512253b2036c841645ff45df311.zip gdb-a5d1b3b53e1db512253b2036c841645ff45df311.tar.gz gdb-a5d1b3b53e1db512253b2036c841645ff45df311.tar.bz2 |
* 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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 572e89b..5db52f3 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. */ |