diff options
author | Alan Modra <amodra@gmail.com> | 2004-06-29 14:13:47 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-06-29 14:13:47 +0000 |
commit | 1a23a9e6139ff1d1b19d242cf9c47f06c326df08 (patch) | |
tree | 768ba9a14f576385aa26e83c963c55f3a835a777 /ld | |
parent | e87a64e1f0fb7718a214f10d6c31ce2050d4a760 (diff) | |
download | ppe42-binutils-1a23a9e6139ff1d1b19d242cf9c47f06c326df08.tar.gz ppe42-binutils-1a23a9e6139ff1d1b19d242cf9c47f06c326df08.zip |
bfd/
* elf64-mmix.c (mmix_set_relaxable_size): Save original size in
rawsize.
(mmix_elf_perform_relocation): Adjust for above change.
(mmix_elf_relocate_section): Likewise.
(mmix_elf_relax_section): Likewise. Use output_section->rawsize.
(mmix_elf_get_section_contents): Delete.
(bfd_elf64_get_section_contents): Delete.
(mmix_elf_relocate_section): Zero stub area.
* linker.c (default_indirect_link_order): Alloc max of section size
and rawsize.
* simple.c (bfd_simple_get_relocated_section_contents): Likewise.
* section.c (bfd_malloc_and_get_section): Likewise.
(struct bfd_section): Update rawsize comment.
* bfd-in2.h: Regenerate.
ld/
* ldlang.c (lang_reset_memory_regions): Save last relax pass section
size in rawsize.
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. */ |