diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-11 21:07:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-11 21:07:46 +0000 |
commit | 3c8fc629fd5d1589d8f0fdf341f7481b69124512 (patch) | |
tree | 1d62b622269e6824779e2a011894cb311e071ef3 /gas/struc-symbol.h | |
parent | 1b4b7de8a22a6439e551975254652a5524a2cfe8 (diff) | |
download | binutils-redhat-3c8fc629fd5d1589d8f0fdf341f7481b69124512.tar.gz |
* 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/struc-symbol.h b/gas/struc-symbol.h index 1087c2b9f4..75735661bf 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 */ |