diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b8b44d190eb..a4314d84208 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+1999-07-16  Andreas Schwab  <schwab@suse.de>
+
+	* elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
+	variables `link' and `elfsec'.
+	(elf_bfd_final_link): Remove unused variable `os'.
+
 Thu Jul 15 17:55:31 1999  Mark P. Mitchell  <mark@codesourcery.com>
 
 	* elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
diff --git a/bfd/elflink.h b/bfd/elflink.h
index bf737595de3..9c00d1df80f 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2062,7 +2062,6 @@ elf_link_record_local_dynamic_symbol (info, input_bfd, input_indx)
   Elf_External_Sym esym;
   unsigned long dynstr_index;
   char *name;
-  int elfsec, link;
 
   /* See if the entry exists already.  */
   for (entry = elf_hash_table (info)->dynlocal; entry ; entry = entry->next)
@@ -4189,7 +4188,7 @@ elf_bfd_final_link (abfd, info)
 	  struct elf_link_local_dynamic_entry *e;
 	  for (e = elf_hash_table (info)->dynlocal; e ; e = e->next)
 	    {
-	      asection *s, *os;
+	      asection *s;
 
 	      sym.st_size = e->isym.st_size;
 	      sym.st_other = e->isym.st_other;