diff options
author | Jiong Wang <jiong.wang@arm.com> | 2015-07-16 15:43:21 +0100 |
---|---|---|
committer | Jiong Wang <jiong.wang@arm.com> | 2015-07-16 15:43:21 +0100 |
commit | 6c37fedc41b028905cc828c0eccd3a8720512e4e (patch) | |
tree | 69e5110a4920a72f8f1a8e3928631569ef570a5f /gas/testsuite | |
parent | 53e8fd0f07cec1eb36149a64e4ed45923967453c (diff) | |
download | gdb-6c37fedc41b028905cc828c0eccd3a8720512e4e.zip gdb-6c37fedc41b028905cc828c0eccd3a8720512e4e.tar.gz gdb-6c37fedc41b028905cc828c0eccd3a8720512e4e.tar.bz2 |
[AArch64][2/3] GAS support BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsldm-1.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsldm-1.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.s | 6 |
5 files changed, 40 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index da6536b..8b3d015 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-07-16 Jiong Wang <jiong.wang@arm.com> + + * gas/aarch64/reloc-tlsldm-1.s: New testcase. + * gas/aarch64/reloc-tlsldm-ilp32-1.s: Ditto. + * gas/aarch64/reloc-tlsldm-1.d: New expectation file. + * gas/aarch64/reloc-tlsldm-ilp32-1.d: Ditto. + 2015-07-16 James Greenhalgh <james.greenhalgh@arm.com> * gas/arm/arch7em-bad.l: Update expected errors. diff --git a/gas/testsuite/gas/aarch64/reloc-tlsldm-1.d b/gas/testsuite/gas/aarch64/reloc-tlsldm-1.d new file mode 100644 index 0000000..30276d1 --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsldm-1.d @@ -0,0 +1,10 @@ +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +0000000000000000 <.*>: + 0: 8b030041 add x1, x2, x3 + 4: 10000000 adr x0, 0 <dummy> + 4: R_AARCH64_TLSLD_ADR_PREL21 dummy diff --git a/gas/testsuite/gas/aarch64/reloc-tlsldm-1.s b/gas/testsuite/gas/aarch64/reloc-tlsldm-1.s new file mode 100644 index 0000000..80512b1 --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsldm-1.s @@ -0,0 +1,6 @@ +// Test file for AArch64 GAS -- tlsldm + +func: + add x1, x2, x3 + // BFD_RELOC_AARCH64_TLSLD_ADR_PREL21 + adr x0, :tlsldm:dummy diff --git a/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.d b/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.d new file mode 100644 index 0000000..28686cd --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.d @@ -0,0 +1,11 @@ +#as: -mabi=ilp32 +#objdump: -dr + +.*: file format .* + +Disassembly of section \.text: + +00000000 <.*>: + 0: 8b030041 add x1, x2, x3 + 4: 10000000 adr x0, 0 <dummy> + 4: R_AARCH64_P32_TLSLD_ADR_PREL21 dummy diff --git a/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.s b/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.s new file mode 100644 index 0000000..b0c5942 --- /dev/null +++ b/gas/testsuite/gas/aarch64/reloc-tlsldm-ilp32-1.s @@ -0,0 +1,6 @@ +// Test file for AArch64 GAS -- tlsldm ILP32 + +func: + add x1, x2, x3 + // BFD_RELOC_AARCH64_TLSLD_ADR_PREL21 + adr x0, :tlsldm:dummy |