1// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --macho-segment - | FileCheck %s 2 3 .thread_init_func 4 .quad 0 5 6// CHECK: File: <stdin> 7// CHECK: Format: Mach-O 64-bit x86-64 8// CHECK: Arch: x86_64 9// CHECK: AddressSize: 64bit 10// CHECK: MachHeader { 11// CHECK: Magic: Magic64 (0xFEEDFACF) 12// CHECK: CpuType: X86-64 (0x1000007) 13// CHECK: CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3) 14// CHECK: FileType: Relocatable (0x1) 15// CHECK: NumOfLoadCommands: 1 16// CHECK: SizeOfLoadCommands: 232 17// CHECK: Flags [ (0x0) 18// CHECK: ] 19// CHECK: Reserved: 0x0 20// CHECK: } 21// CHECK: Sections [ 22// CHECK: Section { 23// CHECK: Index: 0 24// CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) 25// CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 26// CHECK: Address: 0x0 27// CHECK: Size: 0x0 28// CHECK: Offset: 264 29// CHECK: Alignment: 0 30// CHECK: RelocationOffset: 0x0 31// CHECK: RelocationCount: 0 32// CHECK: Type: Regular (0x0) 33// CHECK: Attributes [ (0x800000) 34// CHECK: PureInstructions (0x800000) 35// CHECK: ] 36// CHECK: Reserved1: 0x0 37// CHECK: Reserved2: 0x0 38// CHECK: Reserved3: 0x0 39// CHECK: SectionData ( 40// CHECK: ) 41// CHECK: } 42// CHECK: Section { 43// CHECK: Index: 1 44// CHECK: Name: __thread_init (5F 5F 74 68 72 65 61 64 5F 69 6E 69 74 00 00 00) 45// CHECK: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00) 46// CHECK: Address: 0x0 47// CHECK: Size: 0x8 48// CHECK: Offset: 264 49// CHECK: Alignment: 0 50// CHECK: RelocationOffset: 0x0 51// CHECK: RelocationCount: 0 52// CHECK: Type: ThreadLocalInitFunctionPointers (0x15) 53// CHECK: Attributes [ (0x0) 54// CHECK: ] 55// CHECK: Reserved1: 0x0 56// CHECK: Reserved2: 0x0 57// CHECK: Reserved3: 0x0 58// CHECK: SectionData ( 59// CHECK: 0000: 00000000 00000000 |........| 60// CHECK: ) 61// CHECK: } 62// CHECK: ] 63// CHECK: Relocations [ 64// CHECK: ] 65// CHECK: Segment { 66// CHECK: Cmd: LC_SEGMENT_64 67// CHECK: Name: 68// CHECK: Size: 232 69// CHECK: vmaddr: 0x0 70// CHECK: vmsize: 0x8 71// CHECK: fileoff: 264 72// CHECK: filesize: 8 73// CHECK: maxprot: rwx 74// CHECK: initprot: rwx 75// CHECK: nsects: 2 76// CHECK: flags: 0x0 77// CHECK: } 78