aboutsummaryrefslogtreecommitdiff
path: root/binutils/size.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-06-15 01:19:13 +0000
committerAlan Modra <amodra@gmail.com>2004-06-15 01:19:13 +0000
commit135dfb4a65d79b85be0c7d869fd131ee45203192 (patch)
tree084c9f504e2a73bcd7df787151af2064f51a7a8a /binutils/size.c
parent587aac4eafdba408b9043477548474aa05c377cf (diff)
downloadfsf-binutils-gdb-135dfb4a65d79b85be0c7d869fd131ee45203192.zip
fsf-binutils-gdb-135dfb4a65d79b85be0c7d869fd131ee45203192.tar.gz
fsf-binutils-gdb-135dfb4a65d79b85be0c7d869fd131ee45203192.tar.bz2
* 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/size.c')
-rw-r--r--binutils/size.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/size.c b/binutils/size.c
index 9875493..4beb0a3 100644
--- a/binutils/size.c
+++ b/binutils/size.c
@@ -1,6 +1,6 @@
/* size.c -- report size of various sections of an executable file.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003 Free Software Foundation, Inc.
+ 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -429,7 +429,7 @@ berkeley_sum (bfd *abfd ATTRIBUTE_UNUSED, sec_ptr sec,
if ((flags & SEC_ALLOC) == 0)
return;
- size = bfd_get_section_size_before_reloc (sec);
+ size = bfd_get_section_size (sec);
if ((flags & SEC_CODE) != 0 || (flags & SEC_READONLY) != 0)
textsize += size;
else if ((flags & SEC_HAS_CONTENTS) != 0)