From bc6647997238537bf10be9136df178952d4ee268 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Mon, 16 Mar 2009 12:41:26 +0000 Subject: 2009-03-16 Andrew Stubbs * dwarf2.c (read_section): Always use rawsize, if available. --- bfd/dwarf2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bfd/dwarf2.c') 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; -- cgit v1.1