mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
6eb3e87df0
Before this patch, when you objdump an LLVM-compiled file, objdump tried to decode data-in-code sections as if they were code. This patch adds the missing Mapping Symbols, as defined by "ELF for the ARM Architecture" (ARM IHI 0044D). Patch based on work by Greg Fitzgerald. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169609 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
772 B
ArmAsm
34 lines
772 B
ArmAsm
// RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj %s -o - | \
|
|
// RUN: elf-dump | FileCheck -check-prefix=OBJ %s
|
|
|
|
bleq some_label
|
|
bl some_label
|
|
blx some_label
|
|
beq some_label
|
|
b some_label
|
|
// OBJ: .rel.text
|
|
|
|
// OBJ: 'r_offset', 0x00000000
|
|
// OBJ-NEXT: 'r_sym', 0x000005
|
|
// OBJ-NEXT: 'r_type', 0x1d
|
|
|
|
// OBJ: 'r_offset', 0x00000004
|
|
// OBJ-NEXT: 'r_sym', 0x000005
|
|
// OBJ-NEXT: 'r_type', 0x1c
|
|
|
|
// OBJ: 'r_offset', 0x00000008
|
|
// OBJ-NEXT: 'r_sym', 0x000005
|
|
// OBJ-NEXT: 'r_type', 0x1c
|
|
|
|
// OBJ: 'r_offset', 0x0000000c
|
|
// OBJ-NEXT: 'r_sym', 0x000005
|
|
// OBJ-NEXT: 'r_type', 0x1d
|
|
|
|
// OBJ: 'r_offset', 0x00000010
|
|
// OBJ-NEXT: 'r_sym', 0x000005
|
|
// OBJ-NEXT: 'r_type', 0x1d
|
|
|
|
// OBJ: .symtab
|
|
// OBJ: Symbol 5
|
|
// OBJ-NEXT: some_label
|