mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
2009-03-16 Andrew Stubbs <ams@codesourcery.com>
* dwarf2.c (read_section): Always use rawsize, if available.
This commit is contained in:
parent
ba30a4e951
commit
bc66479972
@ -1,3 +1,7 @@
|
||||
2009-03-16 Andrew Stubbs <ams@codesourcery.com>
|
||||
|
||||
* dwarf2.c (read_section): Always use rawsize, if available.
|
||||
|
||||
2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Backport from git Libtool:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user