2002-01-07 Michael Snyder <msnyder@redhat.com>

* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
	Don't use exec_bfd if it's NULL.
This commit is contained in:
Michael Snyder 2002-01-07 19:45:14 +00:00
parent a9fa5e1fae
commit d0e1d48ef4
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2002-01-07 Michael Snyder <msnyder@redhat.com>
* solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
Don't use exec_bfd if it's NULL.
2002-01-06 Mark Kettenis <kettenis@gnu.org>
* valops.c (value_arg_coerce): Fix formatting.

View file

@ -130,7 +130,12 @@ legacy_svr4_fetch_link_map_offsets (void)
#endif /* defined (HAVE_STRUCT_LINK_MAP32) */
#if defined (HAVE_STRUCT_LINK_MAP32)
if (bfd_get_arch_size (exec_bfd) == 32)
if (exec_bfd != NULL)
{
if (bfd_get_arch_size (exec_bfd) == 32)
return lmp32;
}
else if (TARGET_PTR_BIT == 32)
return lmp32;
else
#endif