aboutsummaryrefslogtreecommitdiff
path: root/gas/struc-symbol.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-11 21:07:46 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-11 21:07:46 +0000
commita1605869fbe119d8c35e950bcd2c6216839baeb5 (patch)
tree71ee549318f9ac9ff1cb5c09f85d4e6871b9e1ff /gas/struc-symbol.h
parentae69440806bd81f225faec1fddcd3f14bab3d3b9 (diff)
downloadgdb-a1605869fbe119d8c35e950bcd2c6216839baeb5.zip
gdb-a1605869fbe119d8c35e950bcd2c6216839baeb5.tar.gz
gdb-a1605869fbe119d8c35e950bcd2c6216839baeb5.tar.bz2
* struc-symbol.h: Put local_symbol code in ifdef BFD_ASSEMBLER.
* symbols.c: Likewise. * config/obj-aout.c (obj_crawl_symbol_chain): Refer directly to sy_next field when taking address, rather than symbol_next.
Diffstat (limited to 'gas/struc-symbol.h')
-rw-r--r--gas/struc-symbol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/struc-symbol.h b/gas/struc-symbol.h
index 1087c2b..7573566 100644
--- a/gas/struc-symbol.h
+++ b/gas/struc-symbol.h
@@ -90,6 +90,8 @@ struct symbol
#endif
};
+#ifdef BFD_ASSEMBLER
+
/* A pointer in the symbol may point to either a complete symbol
(struct symbol above) or to a local symbol (struct local_symbol
defined here). The symbol code can detect the case by examining
@@ -137,6 +139,8 @@ struct local_symbol
#define local_symbol_get_real_symbol(l) ((l)->u.lsy_sym)
#define local_symbol_set_real_symbol(l, s) ((l)->u.lsy_sym = (s))
+#endif /* BFD_ASSEMBLER */
+
#endif /* __struc_symbol_h__ */
/* end of struc-symbol.h */