Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <modra@gmail.com>2004-06-15 06:18:51 +0400
committerAlan Modra <modra@gmail.com>2004-06-15 06:18:51 +0400
commit64b49cceb50bbac54177ffeb120a64092de90f75 (patch)
tree8bb9ec00e03a3289a6c3bd9506222972be478683 /winsup/utils/parse_pe.cc
parentbe9105991c6a83cf3eff65e5db4ff3bef04a47ca (diff)
* dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
instead of _raw_size. (dumper::write_core_dump): Likewise. * parse_pe.cc (select_data_section): Likewise.
Diffstat (limited to 'winsup/utils/parse_pe.cc')
-rw-r--r--winsup/utils/parse_pe.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/utils/parse_pe.cc b/winsup/utils/parse_pe.cc
index 4dc7d4f0a..48c71db7e 100644
--- a/winsup/utils/parse_pe.cc
+++ b/winsup/utils/parse_pe.cc
@@ -1,6 +1,6 @@
/* parse_pe.cc
- Copyright 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Written by Egor Duda <deo@logos-m.ru>
@@ -64,10 +64,11 @@ select_data_section (bfd * abfd, asection * sect, PTR obj)
exclusion *excl_list = (exclusion *) obj;
if ((sect->flags & (SEC_CODE | SEC_DEBUGGING)) &&
- sect->vma && sect->_raw_size)
+ sect->vma && bfd_get_section_size (sect))
{
- excl_list->add ((LPBYTE) sect->vma, (DWORD) sect->_raw_size);
- deb_printf ("excluding section: %20s %08lx\n", sect->name, sect->_raw_size);
+ excl_list->add ((LPBYTE) sect->vma, (DWORD) bfd_get_section_size (sect));
+ deb_printf ("excluding section: %20s %08lx\n", sect->name,
+ bfd_get_section_size (sect));
}
}