diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2016-09-07 09:47:34 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@synopsys.com> | 2016-09-14 14:04:34 +0200 |
commit | 32348c581bf104d46c3fb42a7ff5cefe8ef65f7f (patch) | |
tree | 77a4af6b1cd84c5dbda269dc94bb872934351bcf /gas/config/tc-arc.c | |
parent | dce084426d75b45ef728425a880d642a604c36a7 (diff) | |
download | gdb-32348c581bf104d46c3fb42a7ff5cefe8ef65f7f.zip gdb-32348c581bf104d46c3fb42a7ff5cefe8ef65f7f.tar.gz gdb-32348c581bf104d46c3fb42a7ff5cefe8ef65f7f.tar.bz2 |
[ARC] Fix parsing dtpoff relocation expression.
The assembler accepts dtpoff complex relocation expression like
identifier@dtpoff + const. However, it doesn't accept an expression such
as identifier@dtpoff@base + const. This patch solves this issue, and adds
a number of tests.
ld/
2016-09-14 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/ld-arc/tls-dtpoff.dd: New file.
* testsuite/ld-arc/tls-dtpoff.rd: Likewise.
* testsuite/ld-arc/tls-dtpoff.s: Likewise.
* testsuite/ld-arc/tls-relocs.ld: Likewise.
* testsuite/ld-arc/arc.exp: Add new tdpoff test.
gas/
2016-09-14 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/gas/arc/tls-relocs2.d: New file.
* testsuite/gas/arc/tls-relocs2.s: Likewise.
* config/tc-arc.c (tokenize_arguments): Accept offsets when base
is used.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r-- | gas/config/tc-arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 4e4dcb3..58adf0b 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -1157,7 +1157,7 @@ tokenize_arguments (char *str, restore_line_pointer (c); tmpE.X_add_number = 0; } - else if ((*input_line_pointer != '+') + if ((*input_line_pointer != '+') && (*input_line_pointer != '-')) { tmpE.X_add_number = 0; |