aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/ld.h
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1994-12-23 22:31:35 +0000
committerNate Williams <nate@FreeBSD.org>1994-12-23 22:31:35 +0000
commit61f9ce8d32ffafb73e35ba799825344928652705 (patch)
tree44d4ecee16a0e6d497426a41a2bdd4542c4c3342 /gnu/usr.bin/ld/ld.h
parent3ed375cb277c692d1004086a59c2c58ea0cfb555 (diff)
downloadsrc-61f9ce8d32ffafb73e35ba799825344928652705.tar.gz
src-61f9ce8d32ffafb73e35ba799825344928652705.zip
Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified version of gas. Note: Not all of the newer bits were updated such as some of the non-x86 machine-dependant code is relevant to FreeBSD right now. Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=5205
Diffstat (limited to 'gnu/usr.bin/ld/ld.h')
-rw-r--r--gnu/usr.bin/ld/ld.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/usr.bin/ld/ld.h b/gnu/usr.bin/ld/ld.h
index 3c1b1951a369..58e5c1e26cc3 100644
--- a/gnu/usr.bin/ld/ld.h
+++ b/gnu/usr.bin/ld/ld.h
@@ -1,5 +1,5 @@
/*
- * $Id: ld.h,v 1.10 1994/02/13 20:41:34 jkh Exp $
+ * $Id: ld.h,v 1.11 1994/06/15 22:39:46 rich Exp $
*/
/*-
* This code is derived from software copyrighted by the Free Software
@@ -31,10 +31,6 @@
#define alloca __builtin_alloca
#endif
-#ifdef __FreeBSD__
-#define FreeBSD
-#endif
-
#include "md.h"
#include "link.h"
@@ -49,7 +45,7 @@
/* Define this to specify the default executable format. */
#ifndef DEFAULT_MAGIC
-#ifdef FreeBSD
+#ifdef __FreeBSD__
#define DEFAULT_MAGIC QMAGIC
extern int netzmagic;
#else
@@ -342,6 +338,7 @@ typedef struct localsymbol {
#define LS_WRITE 2 /* Symbol goes in output symtable */
#define LS_RENAME 4 /* xlat name to `<file>.<name>' */
#define LS_GOTSLOTCLAIMED 8 /* This symbol has a GOT entry */
+#define LS_WARNING 16 /* Second part of a N_WARNING duo */
} localsymbol_t;
/* Symbol table */
@@ -368,7 +365,7 @@ typedef struct glosym {
int symbolnum; /* Symbol index in output symbol table */
int rrs_symbolnum; /* Symbol index in RRS symbol table */
- struct nlist *def_nlist; /* The local symbol that gave this
+ localsymbol_t *def_lsp; /* The local symbol that gave this
global symbol its definition */
char defined; /* Definition of this symbol */
@@ -428,7 +425,8 @@ extern int multiple_def_count;
extern int common_defined_global_count;
/* # of warning symbols encountered. */
-extern int warning_count;
+extern int warn_sym_count;
+extern int list_warning_symbols;
/*
* Define a linked list of strings which define symbols which should be
@@ -523,6 +521,7 @@ struct file_entry {
#define E_DYNAMIC 0x20 /* File is a shared object */
#define E_SCRAPPED 0x40 /* Ignore this file */
#define E_SYMBOLS_USED 0x80 /* Symbols from this entry were used */
+#define E_SECONDCLASS 0x100 /* Shared object is a subsidiary */
};
/*