aboutsummaryrefslogtreecommitdiff
path: root/binutils/copy.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-01-24 22:49:24 +0000
committerSteve Chamberlain <sac@cygnus>1992-01-24 22:49:24 +0000
commitd20f480f8a9eb7ea0261b5343c02e88f5a3d6dff (patch)
treecedde9f993b3348605396fead8108e54b17e95ac /binutils/copy.c
parente98e6ec1117b83defce2b1ccce6fd4ec3877bbfb (diff)
downloadgdb-d20f480f8a9eb7ea0261b5343c02e88f5a3d6dff.zip
gdb-d20f480f8a9eb7ea0261b5343c02e88f5a3d6dff.tar.gz
gdb-d20f480f8a9eb7ea0261b5343c02e88f5a3d6dff.tar.bz2
* copy.c, nm.c, objdump.c, size.c : changed to use the
new reloc scheme.
Diffstat (limited to 'binutils/copy.c')
-rw-r--r--binutils/copy.c5
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)
{