mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-19 18:26:28 +00:00

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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246904 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.1 KiB
ArmAsm
38 lines
1.1 KiB
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r -t | FileCheck %s
|
|
|
|
// rdar://9906375
|
|
.org 0x100
|
|
_foo:
|
|
_bar = _foo + 2
|
|
_baz:
|
|
leaq _bar(%rip), %rcx
|
|
|
|
// CHECK: File: <stdin>
|
|
// CHECK-NEXT: Format: Mach-O 64-bit x86-64
|
|
// CHECK-NEXT: Arch: x86_64
|
|
// CHECK-NEXT: AddressSize: 64bit
|
|
// CHECK-NEXT: Relocations [
|
|
// CHECK-NEXT: Section __text {
|
|
// CHECK-NEXT: 0x103 1 2 1 X86_64_RELOC_SIGNED 0 _bar
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Symbols [
|
|
// CHECK-NEXT: Symbol {
|
|
// CHECK-NEXT: Name: _foo (11)
|
|
// CHECK-NEXT: Type: Section (0xE)
|
|
// CHECK-NEXT: Section: __text (0x1)
|
|
// CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
|
|
// CHECK-NEXT: Flags [ (0x0)
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Value: 0x100
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: Symbol {
|
|
// CHECK-NEXT: Name: _bar (6)
|
|
// CHECK-NEXT: Type: Section (0xE)
|
|
// CHECK-NEXT: Section: __text (0x1)
|
|
// CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
|
|
// CHECK-NEXT: Flags [ (0x0)
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Value: 0x102
|
|
// CHECK-NEXT: }
|