link_info.pei386_auto_import = ${default_auto_import};
/* Use by default version. */
link_info.pei386_runtime_pseudo_reloc = DEFAULT_PSEUDO_RELOC_VERSION;
+#else
+ pe_dll_enable_reloc_section = 0;
#endif
}
\f
else
pe_exe_build_sections (link_info.output_bfd, &link_info);
#endif
+#else /* !DLL_SUPPORT */
+ if (!bfd_link_relocatable (&link_info))
+ pe_exe_build_sections (link_info.output_bfd, &link_info);
#endif /* DLL_SUPPORT */
#if defined(TARGET_IS_armpe) || defined(TARGET_IS_arm_wince_pe)
if (pe_out_def_filename)
pe_dll_generate_def_file (pe_out_def_filename);
+#else /* !DLL_SUPPORT */
+ if (!bfd_link_relocatable (&link_info))
+ pe_exe_fill_sections (link_info.output_bfd, &link_info);
#endif /* DLL_SUPPORT */
/* I don't know where .idata gets set as code, but it shouldn't be. */
config.has_shared = 1;
link_info.pei386_auto_import = 1;
link_info.pei386_runtime_pseudo_reloc = 2; /* Use by default version 2. */
+#else
+ pep_dll_enable_reloc_section = 0;
#endif
}
\f
else
pep_exe_build_sections (link_info.output_bfd, &link_info);
#endif
+#else /* !DLL_SUPPORT */
+ if (!bfd_link_relocatable (&link_info))
+ pep_exe_build_sections (link_info.output_bfd, &link_info);
#endif /* DLL_SUPPORT */
{
if (pep_out_def_filename)
pep_dll_generate_def_file (pep_out_def_filename);
+#else /* !DLL_SUPPORT */
+ if (!bfd_link_relocatable (&link_info))
+ pep_exe_fill_sections (link_info.output_bfd, &link_info);
#endif /* DLL_SUPPORT */
/* I don't know where .idata gets set as code, but it shouldn't be. */
{
pe_dll_id_target (bfd_get_target (abfd));
pe_output_file_set_long_section_names (abfd);
- build_filler_bfd (0);
- pe_output_file_set_long_section_names (filler_bfd);
+ if (pe_dll_enable_reloc_section)
+ {
+ build_filler_bfd (false);
+ pe_output_file_set_long_section_names (filler_bfd);
+ }
}
void
#name: PE base relocations
#ld: --enable-reloc-section
#objdump: -p
-#xfail: mcore-*-*
.*: file format .*