From a1605869fbe119d8c35e950bcd2c6216839baeb5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 11 Jun 1999 21:07:46 +0000 Subject: * 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. --- gas/struc-symbol.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gas/struc-symbol.h') 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 */ -- cgit v1.1