diff --git a/ld/ldlang.c b/ld/ldlang.c index d644b5681201..2bbcd358fdad 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -7319,11 +7319,12 @@ lang_process (void) if (config.build_constructors) lang_init_start_stop (); + lang_do_memory_regions(); + /* PR 13683: We must rerun the assignments prior to running garbage collection in order to make sure that all symbol aliases are resolved. */ lang_do_assignments (lang_mark_phase_enum); - lang_do_memory_regions(); expld.phase = lang_first_phase_enum; /* Size up the common data. */