diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2009-03-16 12:41:26 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2009-03-16 12:41:26 +0000 |
commit | bc6647997238537bf10be9136df178952d4ee268 (patch) | |
tree | 1e1a5a70aa0bb2ec4a4915d8f03a9671343de8b3 /bfd/dwarf2.c | |
parent | ba30a4e9515b73206593c2958e203567f5ae5de8 (diff) | |
download | fsf-binutils-gdb-bc6647997238537bf10be9136df178952d4ee268.zip fsf-binutils-gdb-bc6647997238537bf10be9136df178952d4ee268.tar.gz fsf-binutils-gdb-bc6647997238537bf10be9136df178952d4ee268.tar.bz2 |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 40b83b7..05b1304 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; |