PR 30004 * pe-dll.c (pe_dll_build_sections): Do not build an edata section if all symbols are being excluded.
+2023-02-20 Nick Clifton <nickc@redhat.com>
+
+ PR 30004
+ * pe-dll.c (pe_dll_build_sections): Do not build an edata section
+ if all symbols are being excluded.
+
2023-02-16 Ulf Samuelsson <binutils@emagii.com>
Nick Clifton <nickc@redhat.com>
pe_output_file_set_long_section_names (abfd);
process_def_file_and_drectve (abfd, info);
- if (pe_def_file->num_exports == 0 && !bfd_link_pic (info))
+ if (pe_def_file->num_exports == 0
+ && (!bfd_link_pic (info) || pe_dll_exclude_all_symbols))
{
if (pe_dll_enable_reloc_section)
{