repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
Object
/
X86
/
yaml2obj-elf-x86-rel.yaml
blob
d0e69305081fb2466e6d2a21e0c930fd6656a372
1
# RUN: yaml2obj %s > %t
2
# RUN: llvm-readobj -r %t | FileCheck %s
3
4
# CHECK: Relocations [
5
# CHECK-NEXT: Section (2) .rel.text {
6
# CHECK-NEXT: 0x0 R_386_32 main 0x0
7
# CHECK-NEXT: }
8
# CHECK-NEXT: ]
9
10
!ELF
11
FileHeader:
12
Class: ELFCLASS32
13
Data: ELFDATA2LSB
14
Type: ET_REL
15
Machine: EM_386
16
Sections:
17
- Type: SHT_PROGBITS
18
Name: .text
19
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
20
AddressAlign: 0x04
21
Content: 0000000000000000
22
- Type: SHT_REL
23
Name: .rel.text
24
Link: .symtab
25
Info: .text
26
AddressAlign: 0x04
27
Relocations:
28
- Offset: 0
29
Symbol: main
30
Type: R_386_32
31
32
Symbols:
33
- Name: .text
34
Type: STT_SECTION
35
Section: .text
36
- Name: main
37
Type: STT_FUNC
38
Section: .text
39
Size: 0x08
40
Binding: STB_GLOBAL