* buildsym.c (end_symtab): Remove sort_pending and sort_linevec
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 0372abb77d6bfb89e06262a0b7b7650e26229550..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.
@@ -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.024551 seconds and 4 git commands to generate.