aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-08-10 16:46:30 +0000
committerNick Clifton <nickc@redhat.com>2005-08-10 16:46:30 +0000
commit38975f9eab9c0440a0863af398bc10049efe8333 (patch)
tree8ff9c5fb475ea69c5d3431121b9a76eb2b20c3a1 /ld/pe-dll.c
parenta38a2e96b002d6c07564920566539625d8e550a9 (diff)
downloadgdb-38975f9eab9c0440a0863af398bc10049efe8333.zip
gdb-38975f9eab9c0440a0863af398bc10049efe8333.tar.gz
gdb-38975f9eab9c0440a0863af398bc10049efe8333.tar.bz2
pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions before
lang_size_sections.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index e89c8b9..88e7eda 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -2636,6 +2636,7 @@ pe_dll_fill_sections (bfd *abfd, struct bfd_link_info *info)
bfd_set_section_size (filler_bfd, reloc_s, reloc_sz);
/* Resize the sections. */
+ lang_reset_memory_regions ();
lang_size_sections (NULL, TRUE);
/* Redo special stuff. */
@@ -2666,6 +2667,7 @@ pe_exe_fill_sections (bfd *abfd, struct bfd_link_info *info)
bfd_set_section_size (filler_bfd, reloc_s, reloc_sz);
/* Resize the sections. */
+ lang_reset_memory_regions ();
lang_size_sections (NULL, TRUE);
/* Redo special stuff. */