mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
7df428b116
* 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.
13 lines
352 B
Makefile
13 lines
352 B
Makefile
#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
|