This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
PATCH to remove misp_elf_adjust_dynindx
- To: binutils@sourceware.cygnus.com
- Subject: PATCH to remove misp_elf_adjust_dynindx
- From: Mark Mitchell <mark@codesourcery.com>
- Date: Sun, 27 Jun 1999 11:16:28 -0700
- Organization: CodeSourcery, LLC
That routine is redundant, now that we have
_bfd_elf_link_adjust_dynindx.
OK to install?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
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.
Index: elf32-mips.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/elf32-mips.c,v
retrieving revision 1.7
diff -u -p -r1.7 elf32-mips.c
--- elf32-mips.c 1999/06/27 11:05:14 1.7
+++ elf32-mips.c 1999/06/27 18:09:27
@@ -92,8 +92,6 @@ static bfd_reloc_status_type mips16_jump
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_b
{
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;
@@ -7170,21 +7168,6 @@ mips_elf_size_dynamic_sections (output_b
}
}
- 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;
}