Don't always build coffgen.o
[deliverable/binutils-gdb.git] / gdb / solib.c
index 41250a2ed977144d49c33a264379393fee717010..ce9dc05f9ada9911b71f2037e8c6c27a354a9350 100644 (file)
@@ -1404,11 +1404,11 @@ show_auto_solib_add (struct ui_file *file, int from_tty,
    the library-specific handler if it is installed for the current target.  */
 
 struct symbol *
-solib_global_lookup (const struct objfile *objfile,
+solib_global_lookup (struct objfile *objfile,
                     const char *name,
                     const domain_enum domain)
 {
-  const struct target_so_ops *ops = solib_ops (target_gdbarch ());
+  const struct target_so_ops *ops = solib_ops (get_objfile_arch (objfile));
 
   if (ops->lookup_lib_global_symbol != NULL)
     return ops->lookup_lib_global_symbol (objfile, name, domain);
This page took 0.024477 seconds and 4 git commands to generate.