summaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2009-03-16 12:41:26 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2009-03-16 12:41:26 +0000
commitcf1c9ab4eb78b4dc91abd434164b48dc398958b4 (patch)
tree655ab8d00b0ee6a28b7f1191e41c89c9f3e622a9 /bfd/dwarf2.c
parent8931245adccadc88955fe1c064cf84acfb73edd3 (diff)
downloadbinutils-redhat-cf1c9ab4eb78b4dc91abd434164b48dc398958b4.tar.gz
2009-03-16 Andrew Stubbs <ams@codesourcery.com>
* dwarf2.c (read_section): Always use rawsize, if available.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 40b83b7175..05b13041e0 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -432,9 +432,9 @@ read_section (bfd * abfd,
return FALSE;
}
+ *section_size = msec->rawsize ? msec->rawsize : msec->size;
if (syms)
{
- *section_size = msec->size;
*section_buffer
= bfd_simple_get_relocated_section_contents (abfd, msec, NULL, syms);
if (! *section_buffer)
@@ -442,7 +442,6 @@ read_section (bfd * abfd,
}
else
{
- *section_size = msec->rawsize ? msec->rawsize : msec->size;
*section_buffer = bfd_malloc (*section_size);
if (! *section_buffer)
return FALSE;