102 lines · yaml
1# REQUIRES: x862# RUN: rm -rf %t; mkdir %t3# RUN: yaml2obj %s -o %t/test.o4# RUN: llvm-ar rcs %t/test.a %t/test.o5# RUN: not %lld -o /dev/null %t/test.a 2>&1 | FileCheck %s6#7# CHECK: error: UNSIGNED relocation must not be PC-relative at offset 1 of __TEXT,__text in {{.*}}test.a(test.o)8 9!mach-o10FileHeader:11 magic: 0xFEEDFACF12 cputype: 0x0100000713 cpusubtype: 0x0000000314 filetype: 0x0000000115 ncmds: 416 sizeofcmds: 28017 flags: 0x0000000018 reserved: 0x0000000019LoadCommands:20 - cmd: LC_SEGMENT_6421 cmdsize: 15222 segname: ''23 vmaddr: 024 vmsize: 925 fileoff: 31226 filesize: 927 maxprot: 728 initprot: 729 nsects: 130 flags: 031 Sections:32 - sectname: __text33 segname: __TEXT34 addr: 0x000000000000000035 size: 936 offset: 0x0000013837 align: 038 reloff: 0x0000014439 nreloc: 140 flags: 0x8000000041 reserved1: 0x0000000042 reserved2: 0x0000000043 reserved3: 0x0000000044 content: '000000000000000000'45 relocations:46 - address: 0x0000000147 symbolnum: 148 pcrel: true49 length: 350 extern: true51 type: 052 scattered: false53 value: 054 - cmd: LC_BUILD_VERSION55 cmdsize: 2456 platform: 157 minos: 65920058 sdk: 059 ntools: 060 - cmd: LC_SYMTAB61 cmdsize: 2462 symoff: 33263 nsyms: 264 stroff: 36465 strsize: 1266 - cmd: LC_DYSYMTAB67 cmdsize: 8068 ilocalsym: 069 nlocalsym: 070 iextdefsym: 071 nextdefsym: 272 iundefsym: 273 nundefsym: 074 tocoff: 075 ntoc: 076 modtaboff: 077 nmodtab: 078 extrefsymoff: 079 nextrefsyms: 080 indirectsymoff: 081 nindirectsyms: 082 extreloff: 083 nextrel: 084 locreloff: 085 nlocrel: 086LinkEditData:87 NameList:88 - n_strx: 189 n_type: 0x0F90 n_sect: 191 n_desc: 092 n_value: 193 - n_strx: 694 n_type: 0x0F95 n_sect: 196 n_desc: 097 n_value: 998 StringTable:99 - ''100 - _foo101 - _main102