1 # RUN: ld64.lld -arch i386 %s %p/Inputs/hello-world-x86.yaml -o %t
2 # RUN: llvm-nm -m %t | FileCheck %s
4 # Test that i386 hello-world can be linked into a mach-o executable
10 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
15 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
16 address: 0x0000000000000000
17 content: [ 0x55, 0x89, 0xE5, 0x83, 0xEC, 0x08, 0xE8, 0x00,
18 0x00, 0x00, 0x00, 0x58, 0x8D, 0x80, 0x16, 0x00,
19 0x00, 0x00, 0x89, 0x04, 0x24, 0xE8, 0xE6, 0xFF,
20 0xFF, 0xFF, 0x31, 0xC0, 0x83, 0xC4, 0x08, 0x5D,
24 type: GENERIC_RELOC_VANILLA
31 type: GENERIC_RELOC_LOCAL_SECTDIFF
37 type: GENERIC_RELOC_PAIR
43 type: S_CSTRING_LITERALS
45 address: 0x0000000000000021
46 content: [ 0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x0A, 0x00 ]
52 value: 0x0000000000000000
57 value: 0x0000000000000000
60 # CHECK: {{[0-9a-f]+}} (__TEXT,__text) external _main
61 # CHECK: (undefined) external _printf (from libSystem)
62 # CHECK: (undefined) external dyld_stub_binder (from libSystem)