* arc-ext.c (build_ARC_extmap): Use bfd_get_section_size
instead of _raw_size.
This commit is contained in:
parent
a9e0c0c668
commit
52886d7065
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-06-15 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* arc-ext.c (build_ARC_extmap): Use bfd_get_section_size
|
||||||
|
instead of _raw_size.
|
||||||
|
|
||||||
2004-06-08 Jakub Jelinek <jakub@redhat.com>
|
2004-06-08 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* ia64-gen.c (in_iclass): Handle more postinc st
|
* ia64-gen.c (in_iclass): Handle more postinc st
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* ARC target-dependent stuff. Extension structure access functions
|
/* ARC target-dependent stuff. Extension structure access functions
|
||||||
Copyright 1995, 1997, 2000, 2001 Free Software Foundation, Inc.
|
Copyright 1995, 1997, 2000, 2001, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ build_ARC_extmap (text_bfd)
|
||||||
for (p = text_bfd->sections; p != NULL; p = p->next)
|
for (p = text_bfd->sections; p != NULL; p = p->next)
|
||||||
if (!strcmp (p->name, ".arcextmap"))
|
if (!strcmp (p->name, ".arcextmap"))
|
||||||
{
|
{
|
||||||
count = p->_raw_size;
|
count = bfd_get_section_size (p);
|
||||||
arcExtMap = (char *) xmalloc (count);
|
arcExtMap = (char *) xmalloc (count);
|
||||||
if (bfd_get_section_contents (text_bfd, p, (PTR) arcExtMap, 0, count))
|
if (bfd_get_section_contents (text_bfd, p, (PTR) arcExtMap, 0, count))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue