test
[deliverable/binutils-gdb.git] / ld / ldsym.h
index 67daed7c7970172393c513fbd5410786afcca25d..49fcb80e9ba5118345712fabf5949c72d9940165 100644 (file)
@@ -1,22 +1,21 @@
 /* ldsym.h -
-
    Copyright (C) 1991 Free Software Foundation, Inc.
 
    This file is part of GLD, the Gnu Linker.
 
-   GLD is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 1, or (at your option)
-   any later version.
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
-   GLD is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
-   You should have received a copy of the GNU General Public License
-   along with GLD; see the file COPYING.  If not, write to
-   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 typedef struct user_symbol_struct
 {
@@ -24,7 +23,7 @@ typedef struct user_symbol_struct
   struct user_symbol_struct *link;
 
   /* Name of this symbol.  */
-  char *name;                  
+  CONST char *name;                    
 
   /* Pointer to next symbol in order of symbol creation */
   struct user_symbol_struct *next; 
@@ -44,17 +43,36 @@ typedef struct user_symbol_struct
    */
   asymbol **scoms_chain;
 
+  
+
+
+
+  /* If this symbol is a constructor */
+#define SYM_CONSTRUCTOR 1
+  /* If this symbol is a warning symbol */
+#define SYM_WARNING 2
+  /* IF this is an alias for another symbol */
+#define SYM_INDIRECT 4
+  /* If this symbol explicitly should be kept, despite discarding
+     most others.  */
+#define SYM_KEEP 8
+  /* If its got -y set */
+#define SYM_Y 16
+  int flags;
 } ldsym_type;
 
+extern CONST char *keepsyms_file;
+extern int kept_syms;
+
+ldsym_type *ldsym_get PARAMS ((CONST char *));
+ldsym_type *ldsym_get_soft PARAMS ((CONST char *));
+void ldsym_print_symbol_table PARAMS ((void));
+void ldsym_write PARAMS ((void));
+boolean ldsym_undefined PARAMS ((CONST char *));
 
-PROTO(ldsym_type *, ldsym_get, (char *));
-PROTO(ldsym_type *, ldsym_get_soft, (char *));
-PROTO(void, ldsym_print_symbol_table,(void));
-PROTO(void, ldsym_write, (void));
-PROTO(boolean, ldsym_undefined, (char *));
 #define FOR_EACH_LDSYM(x)                                              \
        extern ldsym_type *symbol_head;                                 \
        ldsym_type *x;                                                  \
        for (x = symbol_head; x != (ldsym_type *)NULL; x = x->next)     
 
-
+void ldsym_init PARAMS ((void));
This page took 0.023756 seconds and 4 git commands to generate.