* som.c (bfd_section_from_som_symbol): Only return sections which
correspond to subspaces.
This commit is contained in:
parent
e2a8da6a50
commit
eb57c77670
@ -1,5 +1,8 @@
|
|||||||
Wed Jan 4 14:14:05 1995 Jeff Law (law@snake.cs.utah.edu)
|
Wed Jan 4 14:14:05 1995 Jeff Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
|
* som.c (bfd_section_from_som_symbol): Only return sections which
|
||||||
|
correspond to subspaces.
|
||||||
|
|
||||||
* som.c (som_begin_writing): Don't forget to bump the
|
* som.c (som_begin_writing): Don't forget to bump the
|
||||||
total_subspaces when writing the unloadable subspaces.
|
total_subspaces when writing the unloadable subspaces.
|
||||||
|
|
||||||
|
@ -3685,7 +3685,7 @@ bfd_section_from_som_symbol (abfd, symbol)
|
|||||||
{
|
{
|
||||||
unsigned int index = symbol->symbol_info;
|
unsigned int index = symbol->symbol_info;
|
||||||
for (section = abfd->sections; section != NULL; section = section->next)
|
for (section = abfd->sections; section != NULL; section = section->next)
|
||||||
if (section->target_index == index)
|
if (section->target_index == index && som_is_subspace (section))
|
||||||
return section;
|
return section;
|
||||||
|
|
||||||
/* Could be a symbol from an external library (such as an OMOS
|
/* Could be a symbol from an external library (such as an OMOS
|
||||||
@ -3702,7 +3702,8 @@ bfd_section_from_som_symbol (abfd, symbol)
|
|||||||
for (section = abfd->sections; section; section = section->next)
|
for (section = abfd->sections; section; section = section->next)
|
||||||
{
|
{
|
||||||
if (value >= section->vma
|
if (value >= section->vma
|
||||||
&& value <= section->vma + section->_cooked_size)
|
&& value <= section->vma + section->_cooked_size
|
||||||
|
&& som_is_subspace (section))
|
||||||
return section;
|
return section;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user