struc-symbol.h (78828) | struc-symbol.h (89857) |
---|---|
1/* struct_symbol.h - Internal symbol structure 2 Copyright 1987, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 3 Free Software Foundation, Inc. 4 5 This file is part of GAS, the GNU Assembler. 6 7 GAS is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 108 unchanged lines hidden (view full) --- 117struct local_symbol 118{ 119 /* This pointer is always NULL to indicate that this is a local 120 symbol. */ 121 asymbol *lsy_marker; 122 123 /* The symbol section. This also serves as a flag. If this is 124 reg_section, then this symbol has been converted into a regular | 1/* struct_symbol.h - Internal symbol structure 2 Copyright 1987, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 3 Free Software Foundation, Inc. 4 5 This file is part of GAS, the GNU Assembler. 6 7 GAS is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 108 unchanged lines hidden (view full) --- 117struct local_symbol 118{ 119 /* This pointer is always NULL to indicate that this is a local 120 symbol. */ 121 asymbol *lsy_marker; 122 123 /* The symbol section. This also serves as a flag. If this is 124 reg_section, then this symbol has been converted into a regular |
125 symbol, and sy_sym points to it. */ | 125 symbol, and lsy_sym points to it. */ |
126 segT lsy_section; 127 128 /* The symbol name. */ 129 const char *lsy_name; 130 131 /* The symbol frag or the real symbol, depending upon the value in | 126 segT lsy_section; 127 128 /* The symbol name. */ 129 const char *lsy_name; 130 131 /* The symbol frag or the real symbol, depending upon the value in |
132 sy_section. If the symbol has been fully resolved, lsy_frag is | 132 lsy_section. If the symbol has been fully resolved, lsy_frag is |
133 set to NULL. */ 134 union 135 { 136 fragS *lsy_frag; 137 symbolS *lsy_sym; 138 } u; 139 | 133 set to NULL. */ 134 union 135 { 136 fragS *lsy_frag; 137 symbolS *lsy_sym; 138 } u; 139 |
140 /* The offset within the frag. */ 141 valueT lsy_offset; | 140 /* The value of the symbol. */ 141 valueT lsy_value; 142 143#ifdef TC_LOCAL_SYMFIELD_TYPE 144 TC_LOCAL_SYMFIELD_TYPE lsy_tc; 145#endif |
142}; 143 144#define local_symbol_converted_p(l) ((l)->lsy_section == reg_section) 145#define local_symbol_mark_converted(l) ((l)->lsy_section = reg_section) 146#define local_symbol_resolved_p(l) ((l)->u.lsy_frag == NULL) 147#define local_symbol_mark_resolved(l) ((l)->u.lsy_frag = NULL) 148#define local_symbol_get_frag(l) ((l)->u.lsy_frag) 149#define local_symbol_set_frag(l, f) ((l)->u.lsy_frag = (f)) 150#define local_symbol_get_real_symbol(l) ((l)->u.lsy_sym) 151#define local_symbol_set_real_symbol(l, s) ((l)->u.lsy_sym = (s)) 152 153#endif /* BFD_ASSEMBLER */ 154 155#endif /* __struc_symbol_h__ */ | 146}; 147 148#define local_symbol_converted_p(l) ((l)->lsy_section == reg_section) 149#define local_symbol_mark_converted(l) ((l)->lsy_section = reg_section) 150#define local_symbol_resolved_p(l) ((l)->u.lsy_frag == NULL) 151#define local_symbol_mark_resolved(l) ((l)->u.lsy_frag = NULL) 152#define local_symbol_get_frag(l) ((l)->u.lsy_frag) 153#define local_symbol_set_frag(l, f) ((l)->u.lsy_frag = (f)) 154#define local_symbol_get_real_symbol(l) ((l)->u.lsy_sym) 155#define local_symbol_set_real_symbol(l, s) ((l)->u.lsy_sym = (s)) 156 157#endif /* BFD_ASSEMBLER */ 158 159#endif /* __struc_symbol_h__ */ |