diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2007-05-21 06:36:01 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2007-05-21 06:36:01 +0000 |
commit | 7df428b11639efa0ec64b3f10a2472bd68316179 (patch) | |
tree | d57b57951375d3ece592152d10eea364126e9516 /ld/testsuite/ld-arm/emit-relocs1.d | |
parent | 56c40d18e2015b46cf5455850e88e3f68882ca51 (diff) | |
download | gdb-7df428b11639efa0ec64b3f10a2472bd68316179.zip gdb-7df428b11639efa0ec64b3f10a2472bd68316179.tar.gz gdb-7df428b11639efa0ec64b3f10a2472bd68316179.tar.bz2 |
binutils/
* objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
for executables and shared libraries.
ld/testsuite/
* ld-arm/emit-relocs1.d, ld-arm/emit-relocs1.s,
* ld-arm/emit-relocs1-vxworks.d: New tests.
* ld-arm/arm-elf.exp: Run them.
* ld-arm/vxworks1.dd: Expect proper branch targets.
Diffstat (limited to 'ld/testsuite/ld-arm/emit-relocs1.d')
-rw-r--r-- | ld/testsuite/ld-arm/emit-relocs1.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arm/emit-relocs1.d b/ld/testsuite/ld-arm/emit-relocs1.d new file mode 100644 index 0000000..191cb52 --- /dev/null +++ b/ld/testsuite/ld-arm/emit-relocs1.d @@ -0,0 +1,12 @@ +#source: emit-relocs1.s +#ld: -Ttext 0x10000 --defsym target=0xc000 -e0 --emit-relocs +#objdump: -dr +#... + +10000: e1a00000 nop .* + +10004: e1a00000 nop .* + +10008: e1a00000 nop .* + +1000c: e1a00000 nop .* + +10010: eaffeffa b c000 <target> + +10010: R_ARM_(JUMP|PC)24 target + +10014: eaffeffd b c010 <target\+0x10> + +10014: R_ARM_(JUMP|PC)24 target |