+2006-08-17 Daniel Jacobowitz <dan@codesourcery.com>
+
+ gdb/
+ * objfiles.c (init_entry_point_info): Handle shared objects
+ with entry points.
+
2006-07-11 Daniel Jacobowitz <dan@codesourcery.com>
gdb/
the startup file because it contains the entry point. */
objfile->ei.entry_point = bfd_get_start_address (objfile->obfd);
}
+ else if (bfd_get_file_flags (objfile->obfd) & DYNAMIC
+ && bfd_get_start_address (objfile->obfd) != 0)
+ /* Some shared libraries may have entry points set and be
+ runnable. There's no clear way to indicate this, so just check
+ for values other than zero. */
+ objfile->ei.entry_point = bfd_get_start_address (objfile->obfd);
else
{
/* Examination of non-executable.o files. Short-circuit this stuff. */