llvm-6502/test/MC/ELF/call-abs.s
Rafael Espindola a83f8ef9b4 Print r_sym with the correct number of bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136873 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-04 14:48:27 +00:00

25 lines
560 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
.text
.globl f
.type f,@function
f: # @f
# BB#0: # %entry
subl $4, %esp
calll 42
incl %eax
addl $4, %esp
ret
.Ltmp0:
.size f, .Ltmp0-f
.section .note.GNU-stack,"",@progbits
// CHECK: ('_relocations', [
// CHECK-NEXT: # Relocation 0
// CHECK-NEXT: (('r_offset', 0x00000004)
// CHECK-NEXT: ('r_sym', 0x000000)
// CHECK-NEXT: ('r_type', 0x02)
// CHECK-NEXT: ),
// CHECK-NEXT: ])