diff options
author | Nick Clifton <nickc@redhat.com> | 2013-07-31 16:26:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-07-31 16:26:02 +0000 |
commit | 31a91d61f9ea4504812349166ef6ad5308270927 (patch) | |
tree | aad0e1f44dea516ba6e3fdf1a6f99a02f217449a /ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s | |
parent | 16f92dd4d4a4e637f7910c32cd6fd4b0ff78149a (diff) | |
download | gdb-31a91d61f9ea4504812349166ef6ad5308270927.zip gdb-31a91d61f9ea4504812349166ef6ad5308270927.tar.gz gdb-31a91d61f9ea4504812349166ef6ad5308270927.tar.bz2 |
PR ld/15787
* elf32-arm.c (elf32_arm_final_link_relocate): Base SB on the
output section VMA.
* ld-arm/group-relocs-alu-bad-2.d; New.
* ld-arm/group-relocs-alu-bad-2.s: New.
* ld-arm/group-relocs-ldc-bad-2.d: New.
* ld-arm/group-relocs-ldc-bad-2.s: New.
* ld-arm/group-relocs-ldr-bad-2.d: New.
* ld-arm/group-relocs-ldr-bad-2.s: New.
* ld-arm/group-relocs-ldrs-bad-2.d: New.
* ld-arm/group-relocs-ldrs-bad-2: New.
* ld-arm/arm-elf.exp: Add the new tests.
* ld-arm/group-relocs-ldr-bad.d: Update expected output.
* ld-arm/group-relocs-ldr-bad.s: Likewise.
* ld-arm/group-relocs-ldrs-bad.d: Likewise.
* ld-arm/group-relocs-ldrs-bad.s: Likewise.
* ld-arm/group-relocs.d: Likewise.
* ld-arm/group-relocs.s: Likewise.
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 | 17 |
1 files changed, 17 insertions, 0 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 new file mode 100644 index 0000000..02d01c2 --- /dev/null +++ b/ld/testsuite/ld-arm/group-relocs-ldr-bad-2.s @@ -0,0 +1,17 @@ +@ Test intended to fail for LDR group relocations. + +@ We will place .text at 0x8000. + + .text + .globl _start + +_start: + add r0, r0, #:sb_g0_nc:(bar) + ldr r1, [r0, #:sb_g1:(bar)] + +@ We will place the section foo at 0x8001000 but that should be irrelevant +@ for sb_g* relocations. + + .section foo + .set bar,foo + 0x123456 + |