diff options
author | Alan Modra <amodra@gmail.com> | 2004-06-15 01:16:35 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-06-15 01:16:35 +0000 |
commit | 587aac4eafdba408b9043477548474aa05c377cf (patch) | |
tree | 6796f8eb18628a913807f23f3b4fc07f680e72d4 /gas/config/obj-coff.c | |
parent | 52886d70655a6ad043b003fa1a949abfc70a8c7e (diff) | |
download | gdb-587aac4eafdba408b9043477548474aa05c377cf.zip gdb-587aac4eafdba408b9043477548474aa05c377cf.tar.gz gdb-587aac4eafdba408b9043477548474aa05c377cf.tar.bz2 |
* config/obj-coff.c (coff_adjust_section_syms): Use
bfd_get_section_size instead of bfd_get_section_size_before_reloc.
(coff_frob_section): Likewise.
* config/tc-mips.c (md_apply_fix3): Likewise.
* config/obj-elf.c (elf_frob_file): Use bfd_set_section_size.
(elf_frob_file_after_relocs): Likewise.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index bd08c2b..8ead485 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1,6 +1,6 @@ /* coff object file format Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 + 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GAS. @@ -1379,7 +1379,7 @@ coff_adjust_section_syms (abfd, sec, x) fixp = fixp->fx_next; } } - if (bfd_get_section_size_before_reloc (sec) == 0 + if (bfd_get_section_size (sec) == 0 && nrelocs == 0 && nlnno == 0 && sec != text_section @@ -1554,7 +1554,7 @@ coff_frob_section (sec) supposedly because standard COFF has no other way of encoding alignment for sections. If your COFF flavor has a different way of encoding section alignment, then skip this step, as TICOFF does. */ - size = bfd_get_section_size_before_reloc (sec); + size = bfd_get_section_size (sec); mask = ((bfd_vma) 1 << align_power) - 1; #if !defined(TICOFF) if (size & mask) @@ -1607,9 +1607,9 @@ coff_frob_section (sec) strsec = sec; sec = subseg_get (STAB_SECTION_NAME, 0); /* size is already rounded up, since other section will be listed first */ - size = bfd_get_section_size_before_reloc (strsec); + size = bfd_get_section_size (strsec); - n_entries = bfd_get_section_size_before_reloc (sec) / 12 - 1; + n_entries = bfd_get_section_size (sec) / 12 - 1; /* Find first non-empty frag. It should be large enough. */ fragp = seg_info (sec)->frchainP->frch_root; |