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-alu-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-alu-bad-2.s')
-rw-r--r-- | ld/testsuite/ld-arm/group-relocs-alu-bad-2.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/group-relocs-alu-bad-2.s b/ld/testsuite/ld-arm/group-relocs-alu-bad-2.s new file mode 100644 index 0000000..4d28689 --- /dev/null +++ b/ld/testsuite/ld-arm/group-relocs-alu-bad-2.s @@ -0,0 +1,16 @@ +@ Test intended to fail for ALU group relocations. + +@ We will place .text at 0x8000. + + .text + .globl _start + +_start: + add r0, r0, #:sb_g0:(bar) + +@ We will place the section foo at 0x1208000 but that should be irrelevant +@ for sb_g* relocations. + + .section foo + .set bar,foo + 0x1234 + |