blob: 3aecceb4305e32dd41a0b83889948bee02572885 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Check that the Example Target is actually used.
# RUN: yaml2obj -format=elf %s -o %t.o
# RUN: lld -flavor 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
|