diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldlang.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 6495681097..9d159db1ca 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Alan Modra <amodra@bigpond.net.au> + + * ldlang.c (lang_reset_memory_regions): Save last relax pass section + size in rawsize. + 2004-06-24 Alan Modra <amodra@bigpond.net.au> * ldlang.c (print_output_section_statement): Don't print size before diff --git a/ld/ldlang.c b/ld/ldlang.c index 3d4098207f..8daf9c5337 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -4235,7 +4235,11 @@ lang_reset_memory_regions (void) } for (o = output_bfd->sections; o != NULL; o = o->next) - o->size = 0; + { + /* Save the last size for possible use by bfd_relax_section. */ + o->rawsize = o->size; + o->size = 0; + } } /* Worker for lang_gc_sections_1. */ |