# Check that the Example Target is actually used. # RUN: yaml2obj -format=elf %s -o %t.o # RUN: lld -flavor old-gnu -target x86_64-example-freebsd9 %t.o -o %t.exe # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s # # CHECK: Type: 0xFF00 # object FileHeader: Class: ELFCLASS64 Data: ELFDATA2LSB OSABI: ELFOSABI_GNU Type: ET_REL Machine: EM_X86_64 Sections: - Name: .text Type: SHT_PROGBITS Flags: [ SHF_ALLOC, SHF_EXECINSTR ] AddressAlign: 0x0000000000000010 Content: 554889E5B864000000C745FC000000005DC366666666662E0F1F840000000000554889E531C05DC3 Symbols: Local: - Name: .text Type: STT_SECTION Section: .text Global: - Name: _start Type: STT_FUNC Section: .text Size: 0x0000000000000000