// RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s
// Test case for rdar://10062261
// Must be no base, non-temporary, symbol before the reference to Lbar at the
// start of the section. What we are testing for is that the reference does not
// create a relocation entry.
.text
Ladd:
nop
jmp Lbar
.byte 0x0f,0x1f,0x40,0x00
.byte 0x0f,0x1f,0x40,0x00
Lbar:
mov $1, %eax
ret
// CHECK: File: <stdin>
// CHECK: Format: Mach-O 64-bit x86-64
// CHECK: Arch: x86_64
// CHECK: AddressSize: 64bit
// CHECK: MachHeader {
// CHECK: Magic:
// CHECK: CpuType: X86-64 (0x1000007)
// CHECK: CpuSubType:
// CHECK: FileType:
// CHECK: NumOfLoadCommands: 2
// CHECK: SizeOfLoadCommands: 168
// CHECK: Flags
// CHECK: Reserved: 0x0
// CHECK: }
// CHECK: Sections
// CHECK: Relocations
// CHECK: Segment {
// CHECK: Cmd: LC_SEGMENT_64
// CHECK: Name:
// CHECK: Size: 152
// CHECK: vmaddr: 0x0
// CHECK: vmsize: 0x11
// CHECK: fileoff: 200
// CHECK: filesize: 17
// CHECK: maxprot: rwx
// CHECK: initprot: rwx
// CHECK: nsects: 1
// CHECK: flags: 0x0
// CHECK: }