From 2e39abdb9621a5985ac86f08a6a96df8466628e9 Mon Sep 17 00:00:00 2001
From: Jeff Law <law@redhat.com>
Date: Mon, 28 Feb 1994 00:30:36 +0000
Subject: [PATCH]         * emultempl/hppaelf.em: Include elf32-hppa.h.        
 (file_chain): Add decl.         (hppa_look_for_stubs_in_section): Delete
 decl.         (hppaelf_finish): Reenable code.  Do not pass symbols        
 down to hppa_look_for_stubs_in_section.

---
 ld/ChangeLog            | 8 ++++++++
 ld/emultempl/hppaelf.em | 5 +----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index bdf149e16e5..4a0e40ee474 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+Sun Feb 27 16:29:38 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+	* emultempl/hppaelf.em: Include elf32-hppa.h.
+	(file_chain): Add decl.
+	(hppa_look_for_stubs_in_section): Delete decl.
+	(hppaelf_finish): Reenable code.  Do not pass symbols
+	down to hppa_look_for_stubs_in_section.
+
 Sat Feb 26 10:58:25 1994  Ian Lance Taylor  (ian@cygnus.com)
 
 	* ldmain.c (write_map): Don't define.  Removed all references.
diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em
index fe2334d7276..16f35ceda49 100644
--- a/ld/emultempl/hppaelf.em
+++ b/ld/emultempl/hppaelf.em
@@ -39,7 +39,7 @@ static lang_input_statement_type *stub_file = 0;
 static lang_input_section_type *stub_input_section = NULL;
 
 /* FIXME.  This doesn't belong here.  */
-extern asymbol *hppa_look_for_stubs_in_section ();
+extern lang_statement_list_type file_chain;
   
 /* Perform some emulation specific initialization.  For PA ELF we set
    up the local label prefix and the output architecture.  */
@@ -132,7 +132,6 @@ hppaelf_finish ()
      amount of code will still function without linker stubs allowing us
      to continue testing.  */
 
-#if 0  
   /* Only create stubs for final objects.  */
   if (link_info.relocateable == false)
     {
@@ -162,7 +161,6 @@ hppaelf_finish ()
 						     abfd,
 						     output_bfd,
 						     section,
-						     statement->asymbols,
 						     &new_sym_cnt,
 						     &link_info);
 	      
@@ -213,7 +211,6 @@ hppaelf_finish ()
 		      &stat_ptr->head, 0, (bfd_vma) 0, false);
   
   /* FIXME:  Do we need to redo the "assignments" too?  */
-#endif
 }
 
 /* Create any emulation specific output statements.  FIXME?  Is this