This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[applied mips patch] kill elfxx-mipsmips_elf_get_global_gotsym_index
- From: cgd at broadcom dot com
- To: binutils at sources dot redhat dot com
- Date: 23 Apr 2004 17:15:28 -0700
- Subject: [applied mips patch] kill elfxx-mipsmips_elf_get_global_gotsym_index
mips_elf_get_global_gotsym_index was introduced in April of 2003.
Its sole use was removed in February of this year. Since then, it's
done nothing but generate unnoticed build warnings.
Hasta la vista, function.
(committed as obvious.)
cgd
--
[ bfd/ChangeLog ]
2004-04-22 Chris Demetriou <cgd@broadcom.com>
* elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
Index: elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.97
diff -u -p -r1.97 elfxx-mips.c
--- elfxx-mips.c 6 Apr 2004 15:48:50 -0000 1.97
+++ elfxx-mips.c 24 Apr 2004 00:12:56 -0000
@@ -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
@@ -1813,28 +1811,6 @@ mips_elf_got_info (bfd *abfd, asection *
*sgotp = (sgot->flags & SEC_EXCLUDE) == 0 ? sgot : NULL;
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.