aboutsummaryrefslogtreecommitdiff
path: root/ld/ldwrite.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-06-15 01:13:20 +0000
committerAlan Modra <amodra@gmail.com>2004-06-15 01:13:20 +0000
commita9e0c0c668a0e473385ed4923352f5c0447e8c6c (patch)
treef88dd63363b0c5261a255b9728d8f1b00285fd4f /ld/ldwrite.c
parent67cf9bc5a113105ad18f58b827d6f5b132ad618f (diff)
downloadbinutils-a9e0c0c668a0e473385ed4923352f5c0447e8c6c.zip
binutils-a9e0c0c668a0e473385ed4923352f5c0447e8c6c.tar.gz
binutils-a9e0c0c668a0e473385ed4923352f5c0447e8c6c.tar.bz2
* ldwrite.c (build_link_order): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc or _raw_size. * pe-dll.c (process_def_file): Likewise.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r--ld/ldwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c
index b7637e0..8367075 100644
--- a/ld/ldwrite.c
+++ b/ld/ldwrite.c
@@ -254,7 +254,7 @@ build_link_order (lang_statement_union_type *statement)
if (i->_cooked_size)
link_order->size = i->_cooked_size;
else
- link_order->size = bfd_get_section_size_before_reloc (i);
+ link_order->size = bfd_get_section_size (i);
link_order->offset = i->output_offset;
}
}