]> Git Repo - binutils.git/blobdiff - gdb/elfread.c
* config/tc-sparc.c (initial_architecture,can_bump_v9_p): Deleted.
[binutils.git] / gdb / elfread.c
index 7963769a63106d02105d4e312ae402bf221c9e0d..9a7a0fe3e1990894608657347b3d189475f40d0e 100644 (file)
@@ -1,5 +1,5 @@
 /* Read ELF (Executable and Linking Format) object files for GDB.
-   Copyright 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+   Copyright 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
    Written by Fred Fish at Cygnus Support.
 
 This file is part of GDB.
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "defs.h"
 #include "bfd.h"
 #include "gdb_string.h"
-#include "libelf.h"
+#include "elf-bfd.h"
 #include "elf/mips.h"
 #include "symtab.h"
 #include "symfile.h"
@@ -705,9 +705,13 @@ elf_symfile_finish (objfile)
    just a stub. */
 
 static void
-elf_symfile_init (ignore)
-     struct objfile *ignore;
+elf_symfile_init (objfile)
+     struct objfile *objfile;
 {
+  /* ELF objects may be reordered, so set OBJF_REORDERED.  If we
+     find this causes a significant slowdown in gdb then we could
+     set it in the debug symbol readers only when necessary.  */
+  objfile->flags |= OBJF_REORDERED;
 }
 
 /* ELF specific parsing routine for section offsets.
This page took 0.025321 seconds and 4 git commands to generate.