* 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.
This commit is contained in:
Alan Modra
2003-11-04 23:36:21 +00:00
parent 5f5c1f759d
commit 4b83d61511
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2003-11-05 Alan Modra <amodra@bigpond.net.au> 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 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Zap
unused variable. unused variable.

View File

@ -916,7 +916,6 @@ pe_find_data_imports (void)
} }
} }
} }
#endif /* DLL_SUPPORT */
static bfd_boolean static bfd_boolean
pr_sym (struct bfd_hash_entry *h, void *inf ATTRIBUTE_UNUSED) 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; return TRUE;
} }
#endif /* DLL_SUPPORT */
static void static void
gld_${EMULATION_NAME}_after_open (void) gld_${EMULATION_NAME}_after_open (void)
{ {
#ifdef DLL_SUPPORT
if (pe_dll_extra_pe_debug) if (pe_dll_extra_pe_debug)
{ {
bfd *a; bfd *a;
@ -945,6 +946,7 @@ gld_${EMULATION_NAME}_after_open (void)
for (a = link_info.input_bfds; a; a = a->link_next) for (a = link_info.input_bfds; a; a = a->link_next)
printf ("*%s\n",a->filename); printf ("*%s\n",a->filename);
} }
#endif
/* Pass the wacky PE command line options into the output bfd. /* Pass the wacky PE command line options into the output bfd.
FIXME: This should be done via a function, rather than by FIXME: This should be done via a function, rather than by