From: Ian Lance Taylor Date: Mon, 28 Feb 2000 03:39:28 +0000 (+0000) Subject: * dwarf2.c (read_abbrevs): Use _raw_size directly rather than X-Git-Tag: gdb_5_0-2000-04-10-branchpoint~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67d83c76c53e7652eefc5de48f426d4b1662b82e;p=platform%2Fupstream%2Fbinutils.git * dwarf2.c (read_abbrevs): Use _raw_size directly rather than calling bfd_get_section_size_before_reloc. (decode_line_info): Likewise. (_bfd_dwarf2_find_nearest_line): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fa1adf2..4968183 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2000-02-27 Ian Lance Taylor + + * dwarf2.c (read_abbrevs): Use _raw_size directly rather than + calling bfd_get_section_size_before_reloc. + (decode_line_info): Likewise. + (_bfd_dwarf2_find_nearest_line): Likewise. + 2000-02-27 Eli Zaretskii * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index fc1b79b..5710d1a 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -431,7 +431,7 @@ read_abbrevs (abfd, offset) return 0; } - stash->dwarf_abbrev_size = bfd_get_section_size_before_reloc (msec); + stash->dwarf_abbrev_size = msec->_raw_size; stash->dwarf_abbrev_buffer = (char*) bfd_alloc (abfd, stash->dwarf_abbrev_size); if (! stash->dwarf_abbrev_buffer) return 0; @@ -793,7 +793,7 @@ decode_line_info (unit) return 0; } - size = bfd_get_section_size_before_reloc (msec); + size = msec->_raw_size; stash->dwarf_line_buffer = (char *) bfd_alloc (abfd, size); if (! stash->dwarf_line_buffer) return 0; @@ -1518,7 +1518,7 @@ _bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset, return false; } - size = bfd_get_section_size_before_reloc (msec); + size = msec->_raw_size; if (size == 0) return false;