import gdb-1999-06-14 snapshot
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 179a0ef08a85ebf486b5b1aa6731b6d7b621566f..9c13b00bf4859cfbee99b6f2b3beb29a8563c37f 100644 (file)
@@ -1,5 +1,5 @@
 /* Read ELF (Executable and Linking Format) object files for GDB.
-   Copyright 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+   Copyright 1991, 92, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.
    Written by Fred Fish at Cygnus Support.
 
 This file is part of GDB.
@@ -32,6 +32,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "complaints.h"
 #include "demangle.h"
 
+extern void _initialize_elfread PARAMS ((void));
+
 /* The struct elfinfo is available only during ELF symbol table and
    psymtab reading.  It is destroyed at the complation of psymtab-reading.
    It's local to elf_symfile_read.  */
@@ -538,9 +540,8 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
              if (msym != NULL)
                msym->filename = filesymname;
 #endif
-#ifdef SYMBOL_IS_SPECIAL
-             if (SYMBOL_IS_SPECIAL (sym))
-               MAKE_MSYMBOL_SPECIAL (msym);
+#ifdef ELF_MAKE_MSYMBOL_SPECIAL
+             ELF_MAKE_MSYMBOL_SPECIAL(sym,msym);
 #endif
            }
        }
@@ -592,12 +593,12 @@ elf_symfile_read (objfile, section_offsets, mainline)
   CORE_ADDR offset;
 
   init_minimal_symbol_collection ();
-  back_to = make_cleanup (discard_minimal_symbols, 0);
+  back_to = make_cleanup ((make_cleanup_func) discard_minimal_symbols, 0);
 
   memset ((char *) &ei, 0, sizeof (ei));
 
   /* Allocate struct to keep track of the symfile */
-  objfile->sym_stab_info = (PTR)
+  objfile->sym_stab_info = (struct dbx_symfile_info *)
     xmmalloc (objfile -> md, sizeof (struct dbx_symfile_info));
   memset ((char *) objfile->sym_stab_info, 0, sizeof (struct dbx_symfile_info));
   make_cleanup (free_elfinfo, (PTR) objfile);
This page took 0.024784 seconds and 4 git commands to generate.