From: Alan Modra Date: Tue, 15 Jun 2004 01:13:20 +0000 (+0000) Subject: * ldwrite.c (build_link_order): Use bfd_get_section_size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9e0c0c668a0e473385ed4923352f5c0447e8c6c;p=binutils-gdb.git * 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index edc76afbbf5..b423b74ad6a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2004-06-15 Alan Modra + + * 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. + 2004-06-14 Alan Modra From Richard Wirth diff --git a/ld/ldwrite.c b/ld/ldwrite.c index b7637e079ff..83670750d1b 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; } } diff --git a/ld/pe-dll.c b/ld/pe-dll.c index 45d00aedccb..2b5609c09f2 100644 --- a/ld/pe-dll.c +++ b/ld/pe-dll.c @@ -515,7 +515,7 @@ process_def_file (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *info) s = bfd_get_section_by_name (b, ".drectve"); if (s) { - int size = bfd_get_section_size_before_reloc (s); + int size = bfd_get_section_size (s); char *buf = xmalloc (size); bfd_get_section_contents (b, s, buf, 0, size);