mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +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
12 lines
440 B
ArmAsm
12 lines
440 B
ArmAsm
@ RUN: llvm-mc -triple=arm-linux-gnueabi -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
|
|
|
|
@ Implementation-detail test (unfortunately): values that are relocated do not
|
|
@ go via MCStreamer::EmitBytes; make sure they still emit a mapping symbol.
|
|
add r0, r0, r0
|
|
.word somewhere
|
|
add r0, r0, r0
|
|
|
|
@ CHECK: 00000000 .text 00000000 $a
|
|
@ CHECK-NEXT: 00000008 .text 00000000 $a
|
|
@ CHECK-NEXT: 00000004 .text 00000000 $d
|