summaryrefslogtreecommitdiff
path: root/binutils/coffgrok.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-06-15 01:19:13 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-06-15 01:19:13 +0000
commit9e236ad389c6b1a2cc2f65702e5c811fcd054e1e (patch)
tree507d1068b38372a28d0444b10b86923869c5747c /binutils/coffgrok.c
parente8b544b6eaa2cf55ab4a0ad3c89a676fd02e0be7 (diff)
downloadbinutils-redhat-9e236ad389c6b1a2cc2f65702e5c811fcd054e1e.tar.gz
* objcopy.c (copy_section): Use bfd_get_section_size instead of
_raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done. (compare_section_lma): Likewise. * addr2line.c (find_address_in_section): Likewise. * coffgrok.c (do_sections_p1): Likewise. * dlltool.c (scan_drectve_symbols): Likewise. * nlmconv.c (main): Likewise. (copy_sections): Likewise. (powerpc_mangle_relocs): Likewise. * objdump.c (disassemble_section): Likewise. * prdbg.c (find_address_in_section): Likewise. * size.c (berkeley_sum): Likewise. * srconv.c (wr_ob): Likewise. * strings.c (strings_a_section): Likewise.
Diffstat (limited to 'binutils/coffgrok.c')
-rw-r--r--binutils/coffgrok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/coffgrok.c b/binutils/coffgrok.c
index b2ec98c4bd..abeb33df0e 100644
--- a/binutils/coffgrok.c
+++ b/binutils/coffgrok.c
@@ -1,5 +1,5 @@
/* coffgrok.c
- Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2003
+ Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -156,7 +156,7 @@ do_sections_p1 (struct coff_ofile *head)
if (strcmp (section->name, ".bss") == 0)
head->sections[i].data = 1;
head->sections[i].address = section->lma;
- head->sections[i].size = section->_raw_size;
+ head->sections[i].size = bfd_get_section_size (section);
head->sections[i].number = idx;
head->sections[i].nrelocs = section->reloc_count;
head->sections[i].relocs =