From f86a87568d8533f00d5af393188707996791657e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 17 May 2006 16:46:54 +0000 Subject: [PATCH] * ldlang.c (lang_size_sections): Call lang_reset_memory_regions before redoing one_lang_size_sections_pass. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index e7d25720a9f..d8b2a7decf8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-05-17 Daniel Jacobowitz + + * ldlang.c (lang_size_sections): Call lang_reset_memory_regions + before redoing one_lang_size_sections_pass. + 2006-05-11 Carlos O'Donell * ld.texinfo: Rename "Index" to "LD Index" diff --git a/ld/ldlang.c b/ld/ldlang.c index f376652dae2..041253859d5 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4542,6 +4542,7 @@ lang_size_sections (bfd_boolean *relax, bfd_boolean check_regions) expld.dataseg.base -= maxpage; relro_end -= maxpage; } + lang_reset_memory_regions (); one_lang_size_sections_pass (relax, check_regions); if (expld.dataseg.relro_end > relro_end) { @@ -4565,6 +4566,7 @@ lang_size_sections (bfd_boolean *relax, bfd_boolean check_regions) < old_min_base) expld.dataseg.base += expld.dataseg.pagesize; expld.dataseg.base -= (1 << max_alignment_power); + lang_reset_memory_regions (); one_lang_size_sections_pass (relax, check_regions); } } @@ -4585,6 +4587,7 @@ lang_size_sections (bfd_boolean *relax, bfd_boolean check_regions) && first + last <= expld.dataseg.pagesize) { expld.dataseg.phase = exp_dataseg_adjust; + lang_reset_memory_regions (); one_lang_size_sections_pass (relax, check_regions); } } -- 2.30.2