* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Only do
authorAlan Modra <amodra@gmail.com>
Tue, 4 Nov 2003 23:36:21 +0000 (23:36 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Nov 2003 23:36:21 +0000 (23:36 +0000)
pe_dll_extra_pe_debug stuff when DLL_SUPPORT defined.
(pr_sym): Move inside #ifdef DLL_SUPPORT.

ld/ChangeLog
ld/emultempl/pe.em

index 10ac41c02cbf215a4eb84bc0ed7527fa1ed82cf9..b7c97ba223910c1e2a78b52bff7d0c6523d66499 100644 (file)
@@ -1,5 +1,9 @@
 2003-11-05  Alan Modra  <amodra@bigpond.net.au>
 
+       * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Only do
+       pe_dll_extra_pe_debug stuff when DLL_SUPPORT defined.
+       (pr_sym): Move inside #ifdef DLL_SUPPORT.
+
        * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Zap
        unused variable.
 
index 109c4c1b54cf42a09c5912f0891082b7c519ec8d..7da7349ac530c0011f710b214d5c7389e9abd029 100644 (file)
@@ -916,7 +916,6 @@ pe_find_data_imports (void)
         }
     }
 }
-#endif /* DLL_SUPPORT */
 
 static bfd_boolean
 pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED)
@@ -926,11 +925,13 @@ pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED)
 
   return TRUE;
 }
+#endif /* DLL_SUPPORT */
 
 
 static void
 gld_${EMULATION_NAME}_after_open (void)
 {
+#ifdef DLL_SUPPORT
   if (pe_dll_extra_pe_debug)
     {
       bfd *a;
@@ -945,6 +946,7 @@ gld_${EMULATION_NAME}_after_open (void)
       for (a = link_info.input_bfds; a; a = a->link_next)
        printf ("*%s\n",a->filename);
     }
+#endif
 
   /* Pass the wacky PE command line options into the output bfd.
      FIXME: This should be done via a function, rather than by