diff options
Diffstat (limited to 'ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s')
-rw-r--r-- | ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s b/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s index 02d01c2..3aec8ee 100644 --- a/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s +++ b/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s @@ -6,12 +6,13 @@ .globl _start _start: - add r0, r0, #:sb_g0_nc:(bar) - ldr r1, [r0, #:sb_g1:(bar)] + add r0, r0, #:pc_g0_nc:(bar) + ldr r1, [r0, #:pc_g1:(bar + 4)] -@ We will place the section foo at 0x8001000 but that should be irrelevant -@ for sb_g* relocations. +@ We will place the section foo at 0x8001000. .section foo - .set bar,foo + 0x123456 + +bar: + mov r0, #0 |