diff options
Diffstat (limited to 'ld/testsuite/ld-arm/group-relocs-ldc-bad.s')
| -rw-r--r-- | ld/testsuite/ld-arm/group-relocs-ldc-bad.s | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/ld/testsuite/ld-arm/group-relocs-ldc-bad.s b/ld/testsuite/ld-arm/group-relocs-ldc-bad.s new file mode 100644 index 000000000000..611255b063da --- /dev/null +++ b/ld/testsuite/ld-arm/group-relocs-ldc-bad.s @@ -0,0 +1,19 @@ +@ Test intended to fail for LDC group relocations. + +@ We will place .text at 0x8000. + +	.text +	.globl _start + +_start: +	add	r0, r0, #:pc_g0_nc:(bar) +	ldc	0, c0, [r0, #:pc_g1:(bar + 4)] + +@ We will place the section foo at 0x118400. +@ (The relocations above would be OK if it were at 0x118200, for example.) + +	.section foo + +bar: +	mov r0, #0 + | 
