summaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-06-15 01:24:22 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-06-15 01:24:22 +0000
commit5bfc0104a614021b6667b01fd32e8a87e5a22279 (patch)
tree3ec58dfdae18bd60cd8f3625ed27711ee122d73e /bfd/coffgen.c
parent9e236ad389c6b1a2cc2f65702e5c811fcd054e1e (diff)
downloadbinutils-redhat-5bfc0104a614021b6667b01fd32e8a87e5a22279.tar.gz
* section.c (struct sec): Remove usused flags. Reorganize a little.
(bfd_get_section_size_before_reloc): Delete. (bfd_get_section_size_after_reloc): Delete. (STD_SECTION): Update. (bfd_get_section_size_now): Delete. (bfd_set_section_contents): Don't referece reloc_done. (bfd_get_section_contents): Remove reloc_done comment. * bout.c (b_out_bfd_get_relocated_section_contents): Don't set reloc_done. * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise. * ecoff.c (bfd_debug_section): Update initializer. * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto. * reloc.c (bfd_generic_get_relocated_section_contents): Likewise. * bfd-in.h (bfd_section_size): Expand. (bfd_get_section_size): New macro. * bfd-in2.h: Regenerate. * coff64-rs6000.c (xcoff64_write_object_contents): Replace bfd_get_section_size_before_reloc with bfd_get_section_size. * coffcode.h (coff_write_object_contents): Likewise. * coffgen.c (build_debug_section): Likewise. * dwarf1.c (parse_line_table): Likewise. (_bfd_dwarf1_find_nearest_line): Likewise. * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. * i386msdos.c (msdos_write_object_contents): Likewise. * pdp11.c (squirt_out_relocs): Likewise. * elf32-sh64.c (sh64_find_section_for_address): Remove comment. * elf64-mmix.c (mmix_elf_final_link): Update comment.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index a712b4b36e..acb78b3cc1 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1,6 +1,6 @@
/* Support for the generic parts of COFF, for BFD.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003
+ 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
Written by Cygnus Support.
@@ -1537,7 +1537,7 @@ build_debug_section (abfd)
return NULL;
}
- sec_size = bfd_get_section_size_before_reloc (sect);
+ sec_size = bfd_get_section_size (sect);
debug_section = (PTR) bfd_alloc (abfd, sec_size);
if (debug_section == NULL)
return NULL;