aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-06-27 16:11:13 +0000
committerMark Mitchell <mark@codesourcery.com>1999-06-27 16:11:13 +0000
commit9886bd4365c49f76dfe3cecfbbb790cdbcdc0191 (patch)
tree296ea5a5895bd6792a4f58fcc5788754a8dd41bb
parentc6142e5d05bb11f13b753c9045912effa27dd118 (diff)
downloadgdb-9886bd4365c49f76dfe3cecfbbb790cdbcdc0191.zip
gdb-9886bd4365c49f76dfe3cecfbbb790cdbcdc0191.tar.gz
gdb-9886bd4365c49f76dfe3cecfbbb790cdbcdc0191.tar.bz2
* elf32-mips.c (mips_elf_adjust_dynindx): Remove.
(mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx instead.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-mips.c19
2 files changed, 7 insertions, 18 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e8c2f7d..1b146bf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+1999-06-27 Mark Mitchell <mark@codesourcery.com>
+
+ * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
+ (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
+ instead.
+
1999-06-26 Mark Mitchell <mark@codesourcery.com>
* elf32-mips.c (mips_elf_swap_msym_in): New function.
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 13e2d18..17c057b 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -92,8 +92,6 @@ static bfd_reloc_status_type mips16_jump_reloc
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
static bfd_reloc_status_type mips16_gprel_reloc
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
-static boolean mips_elf_adjust_dynindx
- PARAMS ((struct elf_link_hash_entry *, PTR));
static boolean mips_elf_relocate_section
PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Sym *, asection **));
@@ -7142,7 +7140,7 @@ mips_elf_size_dynamic_sections (output_bfd, info)
{
c = bfd_count_sections (output_bfd);
elf_link_hash_traverse (elf_hash_table (info),
- mips_elf_adjust_dynindx,
+ _bfd_elf_link_adjust_dynindx,
(PTR) &c);
elf_hash_table (info)->dynsymcount += c;
@@ -7173,21 +7171,6 @@ mips_elf_size_dynamic_sections (output_bfd, info)
return true;
}
-/* Increment the index of a dynamic symbol by a given amount. Called
- via elf_link_hash_traverse. */
-
-static boolean
-mips_elf_adjust_dynindx (h, cparg)
- struct elf_link_hash_entry *h;
- PTR cparg;
-{
- unsigned int *cp = (unsigned int *) cparg;
-
- if (h->dynindx != -1)
- h->dynindx += *cp;
- return true;
-}
-
/* Finish up dynamic symbol handling. We set the contents of various
dynamic sections here. */