* ldlang.c (lang_size_sections): Last, set _cooked_size for output
sections.
This commit is contained in:
parent
4e2147ff81
commit
86d3c9a824
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* ldlang.c (lang_size_sections): Last, set _cooked_size for output
|
||||
sections.
|
||||
|
||||
2003-10-16 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use
|
||||
|
|
|
@ -3227,6 +3227,7 @@ lang_size_sections
|
|||
bfd_boolean check_regions)
|
||||
{
|
||||
bfd_vma result;
|
||||
asection *o;
|
||||
|
||||
/* Callers of exp_fold_tree need to increment this. */
|
||||
lang_statement_iteration++;
|
||||
|
@ -3253,6 +3254,14 @@ lang_size_sections
|
|||
}
|
||||
}
|
||||
|
||||
/* Some backend relaxers want to refer to the output section size. Give
|
||||
them a section size that does not change on the next call while they
|
||||
relax. We can't set this at top because lang_reset_memory_regions
|
||||
which is called before we get here, sets _raw_size to 0 on relaxing
|
||||
rounds. */
|
||||
for (o = output_bfd->sections; o != NULL; o = o->next)
|
||||
o->_cooked_size = o->_raw_size;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue