diff options
Diffstat (limited to 'binutils/copy.c')
-rw-r--r-- | binutils/copy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/copy.c b/binutils/copy.c index b61d003..12d2f35 100644 --- a/binutils/copy.c +++ b/binutils/copy.c @@ -344,7 +344,7 @@ copy_sections(ibfd, isection, obfd) osection = bfd_get_section_by_name(obfd, bfd_section_name(ibfd, isection)); - size = isection->size; + size = bfd_get_section_size_before_reloc(isection); if (size == 0) return; @@ -360,6 +360,9 @@ copy_sections(ibfd, isection, obfd) bfd_set_reloc(obfd, osection, relpp, relcount); } + isection->_cooked_size = isection->_raw_size; + isection->reloc_done =true; + if (bfd_get_section_flags(ibfd, isection) & SEC_HAS_CONTENTS) { |