diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-03-02 07:55:01 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-03-02 07:55:01 +0000 |
commit | 167c3097b24047b63c0565395014132d25391419 (patch) | |
tree | d45dd568563c3f7d0526d7f593bd8f63f7a8e912 /gas/config | |
parent | 8c1acd095d2f5046e963bccf45215e0f88383adc (diff) | |
download | gdb-167c3097b24047b63c0565395014132d25391419.zip gdb-167c3097b24047b63c0565395014132d25391419.tar.gz gdb-167c3097b24047b63c0565395014132d25391419.tar.bz2 |
gas/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (intel_e11): If not followed by T_PTR, treat T_BYTE
etc. like normal symbol references (T_ID).
gas/testsuite/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* gas/i386/intelok.d: Add -r to objdump options. Adjust expectations.
* gas/i386/intelok.s: Add checks for various special memory operands.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 391192f..37c4073 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -6154,6 +6154,23 @@ intel_e11 () { intel_match_token (cur_token.code); + if (cur_token.code != T_PTR) + { + /* It must have been an identifier; add it to the displacement string. */ + strcat (intel_parser.disp, prev_token.str); + + /* The identifier represents a memory reference only if it's not + preceded by an offset modifier and if it's not an equate. */ + if (intel_parser.op_modifier != T_OFFSET) + { + symbolS *symbolP; + + symbolP = symbol_find(prev_token.str); + if (!symbolP || S_GET_SEGMENT(symbolP) != absolute_section) + intel_parser.is_mem = 1; + } + } + return 1; } |