summaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2000-02-28 03:39:28 +0000
committerIan Lance Taylor <ian@airs.com>2000-02-28 03:39:28 +0000
commitdec3cc321b9b38cc045c3507be75bfbac60da3a6 (patch)
tree6ac9a4008c7556a77b739429d4ff7eac3fd32899 /bfd/dwarf2.c
parent723ffd2cb0b515efdeeb0155b9eb15e2688ef5bc (diff)
downloadbinutils-redhat-dec3cc321b9b38cc045c3507be75bfbac60da3a6.tar.gz
* 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.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index fc1b79bd57..5710d1adbd 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;