summaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-06-15 01:13:20 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-06-15 01:13:20 +0000
commit2eb1b8938de1aff11d88356a36df36a62989ad44 (patch)
tree7cdd2e2282a9f554192aa4f535faf9e4f12eb905 /ld/pe-dll.c
parent4a35ff59fa7f410b3c68ff801e4d0f29140146c2 (diff)
downloadbinutils-redhat-2eb1b8938de1aff11d88356a36df36a62989ad44.tar.gz
* 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/pe-dll.c')
-rw-r--r--ld/pe-dll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 45d00aedcc..2b5609c09f 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);