mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
a12e184ad8
This commit accomplish two goals: 1) it's a step forward to deprecate macho-dump, now less than 40 tests rely on it. 2) It tests all the MachO specific features introduced in llvm-readobj in the following commits: r246789, r246665, r246474. While the conversion is mostly mechanical (I double-checked all the tests output one by one, but still), a post-commit review is greatly appreciated. llvm-svn: 246904
26 lines
749 B
ArmAsm
26 lines
749 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r | FileCheck %s
|
|
|
|
// Test case for rdar://10743265
|
|
|
|
// This tests that this expression does not cause a crash and produces two
|
|
// relocation entries:
|
|
// Relocation information (__TEXT,__text) 2 entries
|
|
// address pcrel length extern type scattered symbolnum/value
|
|
// 00000000 False long True SUB False _base
|
|
// 00000000 False long True UNSIGND False _start_ap_2
|
|
|
|
_base = .
|
|
|
|
.long (0x2000) + _start_ap_2 - _base
|
|
.word 0
|
|
|
|
_start_ap_2:
|
|
cli
|
|
|
|
// CHECK: Relocations [
|
|
// CHECK: Section __text {
|
|
// CHECK: 0x0 0 2 1 X86_64_RELOC_SUBTRACTOR 0 _base
|
|
// CHECK: 0x0 0 2 1 X86_64_RELOC_UNSIGNED 0 _start_ap_2
|
|
// CHECK: }
|
|
// CHECK: ]
|