aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-11-04 23:36:21 +0000
committerAlan Modra <amodra@gmail.com>2003-11-04 23:36:21 +0000
commit4b83d615119c447dce017891fbb633e12fe9fd6c (patch)
tree565b24510c01f56e26082324124dcd6f0f0d7d88 /ld/emultempl
parent5f5c1f759df60c2b648d402ae6860bd2efe04945 (diff)
downloadgdb-4b83d615119c447dce017891fbb633e12fe9fd6c.zip
gdb-4b83d615119c447dce017891fbb633e12fe9fd6c.tar.gz
gdb-4b83d615119c447dce017891fbb633e12fe9fd6c.tar.bz2
* 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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 109c4c1..7da7349 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -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