diff options
author | Chris Demetriou <cgd@google.com> | 2004-04-24 00:15:32 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2004-04-24 00:15:32 +0000 |
commit | 8472310da88ce885e98ff544c6555e2b754af065 (patch) | |
tree | c83fc9744d5d02556f59bcd1c9f55efcfad8b535 /bfd/elfxx-mips.c | |
parent | 07eb41a2459319907b14008207f13c7450cbe08f (diff) | |
download | gdb-8472310da88ce885e98ff544c6555e2b754af065.zip gdb-8472310da88ce885e98ff544c6555e2b754af065.tar.gz gdb-8472310da88ce885e98ff544c6555e2b754af065.tar.bz2 |
2004-04-22 Chris Demetriou <cgd@broadcom.com>
* elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index b064511..2bd84bf 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -400,8 +400,6 @@ static asection *mips_elf_got_section (bfd *, bfd_boolean); static struct mips_got_info *mips_elf_got_info (bfd *, asection **); -static long mips_elf_get_global_gotsym_index - (bfd *abfd); static bfd_vma mips_elf_local_got_index (bfd *, bfd *, struct bfd_link_info *, bfd_vma); static bfd_vma mips_elf_global_got_index @@ -1815,28 +1813,6 @@ mips_elf_got_info (bfd *abfd, asection **sgotp) return g; } -/* Obtain the lowest dynamic index of a symbol that was assigned a - global GOT entry. */ -static long -mips_elf_get_global_gotsym_index (bfd *abfd) -{ - asection *sgot; - struct mips_got_info *g; - - if (abfd == NULL) - return 0; - - sgot = mips_elf_got_section (abfd, TRUE); - if (sgot == NULL || mips_elf_section_data (sgot) == NULL) - return 0; - - g = mips_elf_section_data (sgot)->u.got_info; - if (g == NULL || g->global_gotsym == NULL) - return 0; - - return g->global_gotsym->dynindx; -} - /* Returns the GOT offset at which the indicated address can be found. If there is not yet a GOT entry for this value, create one. Returns -1 if no satisfactory GOT offset can be found. */ |