2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
* coffread.c (cs_section_address): Passing proper argument for `bfd_get_section_vma'. * dwarf2read.c (dwarf2_locate_sections): Likewise, for `bfd_get_section_flags'. * remote.c (remote_trace_set_readonly_regions): Likewise, for `bfd_get_section_vma'.
This commit is contained in:
parent
abc9d0dc6e
commit
81b9b86eb8
|
@ -1,3 +1,12 @@
|
||||||
|
2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||||
|
|
||||||
|
* coffread.c (cs_section_address): Passing proper argument for
|
||||||
|
`bfd_get_section_vma'.
|
||||||
|
* dwarf2read.c (dwarf2_locate_sections): Likewise, for
|
||||||
|
`bfd_get_section_flags'.
|
||||||
|
* remote.c (remote_trace_set_readonly_regions): Likewise, for
|
||||||
|
`bfd_get_section_vma'.
|
||||||
|
|
||||||
2012-05-16 Tom Tromey <tromey@redhat.com>
|
2012-05-16 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR macros/13205:
|
PR macros/13205:
|
||||||
|
|
|
@ -311,7 +311,7 @@ cs_section_address (struct coff_symbol *cs, bfd *abfd)
|
||||||
args.resultp = §
|
args.resultp = §
|
||||||
bfd_map_over_sections (abfd, find_targ_sec, &args);
|
bfd_map_over_sections (abfd, find_targ_sec, &args);
|
||||||
if (sect != NULL)
|
if (sect != NULL)
|
||||||
addr = bfd_get_section_vma (objfile->obfd, sect);
|
addr = bfd_get_section_vma (abfd, sect);
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ dwarf2_locate_sections (bfd *abfd, asection *sectp, void *vnames)
|
||||||
}
|
}
|
||||||
else if (section_is_p (sectp->name, &names->eh_frame))
|
else if (section_is_p (sectp->name, &names->eh_frame))
|
||||||
{
|
{
|
||||||
flagword aflag = bfd_get_section_flags (ignore_abfd, sectp);
|
flagword aflag = bfd_get_section_flags (abfd, sectp);
|
||||||
|
|
||||||
if (aflag & SEC_HAS_CONTENTS)
|
if (aflag & SEC_HAS_CONTENTS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10399,6 +10399,7 @@ static void
|
||||||
remote_trace_set_readonly_regions (void)
|
remote_trace_set_readonly_regions (void)
|
||||||
{
|
{
|
||||||
asection *s;
|
asection *s;
|
||||||
|
bfd *abfd = NULL;
|
||||||
bfd_size_type size;
|
bfd_size_type size;
|
||||||
bfd_vma vma;
|
bfd_vma vma;
|
||||||
int anysecs = 0;
|
int anysecs = 0;
|
||||||
|
@ -10419,7 +10420,7 @@ remote_trace_set_readonly_regions (void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
anysecs = 1;
|
anysecs = 1;
|
||||||
vma = bfd_get_section_vma (,s);
|
vma = bfd_get_section_vma (abfd, s);
|
||||||
size = bfd_get_section_size (s);
|
size = bfd_get_section_size (s);
|
||||||
sprintf_vma (tmp1, vma);
|
sprintf_vma (tmp1, vma);
|
||||||
sprintf_vma (tmp2, vma + size);
|
sprintf_vma (tmp2, vma + size);
|
||||||
|
|
Loading…
Reference in New Issue