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 /ld/testsuite/ld-arc/tls-dtpoff.dd | |
parent | dce084426d75b45ef728425a880d642a604c36a7 (diff) |
[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 'ld/testsuite/ld-arc/tls-dtpoff.dd')
-rw-r--r-- | ld/testsuite/ld-arc/tls-dtpoff.dd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arc/tls-dtpoff.dd b/ld/testsuite/ld-arc/tls-dtpoff.dd new file mode 100644 index 0000000000..d27475af1d --- /dev/null +++ b/ld/testsuite/ld-arc/tls-dtpoff.dd @@ -0,0 +1,11 @@ + +.*: file format .*arc.* +architecture: ARCv2, flags 0x00000113: +HAS_RELOC, EXEC_P, HAS_SYMS, D_PAGED +start address 0x00010000 + + +Disassembly of section .text: + +[0-9a-f]+ <.text>: + [0-9a-f]+: 70c3 0000 0804 add_s r0,r0,0x804 |