summaryrefslogtreecommitdiff
path: root/gas/struc-symbol.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-10-11 11:16:17 +0000
committerNick Clifton <nickc@redhat.com>2005-10-11 11:16:17 +0000
commit77f010ee01dc97872507044f2c47bf24fd31229f (patch)
tree29f08b0f56aa246c41e1637100ea04e7da16c44b /gas/struc-symbol.h
parentac8a888b0b8e10dbc8ae3492439d173dab3fb13a (diff)
downloadbinutils-redhat-77f010ee01dc97872507044f2c47bf24fd31229f.tar.gz
This adjusts equate handling by
- allowing true forward references (which will always assume the referenced symbols have at the point of use) through the new .eqv pseudo-op and the new == operator - disallowing changing .equiv-generated equates (so that the protection this provides is both forward and backward) - snapshotting equates when their value gets changed so that previous uses don't get affected by the new value. - allowing expressions in places where absolute expressions (or register names) are needed which were not completely resolvable at the point of their definition but which are fully resolvable at the point of use In addition it fixes PR/288.
Diffstat (limited to 'gas/struc-symbol.h')
-rw-r--r--gas/struc-symbol.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/struc-symbol.h b/gas/struc-symbol.h
index 0b2d520649..2326ee4f06 100644
--- a/gas/struc-symbol.h
+++ b/gas/struc-symbol.h
@@ -60,6 +60,12 @@ struct symbol
a symbol is used in backend routines. */
unsigned int sy_used : 1;
+ /* Whether the symbol can be re-defined. */
+ unsigned int sy_volatile : 1;
+
+ /* Whether the symbol is a forward reference. */
+ unsigned int sy_forward_ref : 1;
+
/* This is set if the symbol is defined in an MRI common section.
We handle such sections as single common symbols, so symbols
defined within them must be treated specially by the relocation