[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-objdump / X86 / elf-dynamic-relocs-rel.test
blobf62f5e38f9711a2f4291d61cd79d809e75fdb1e9
1 ## Show that llvm-objdump can dump dynamic relocations for Elf_Rel relocations
2 ## where the relocation references a symbol and where it does not.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-objdump --dynamic-reloc %t | FileCheck %s
6 # RUN: llvm-objdump -R %t | FileCheck %s
8 # CHECK:      DYNAMIC RELOCATION RECORDS
9 # CHECK-NEXT: 00000030 R_386_RELATIVE *ABS*
10 # CHECK-NEXT: 00000010 R_386_NONE foo
11 # CHECK-EMPTY:
13 --- !ELF
14 FileHeader:
15   Class:           ELFCLASS32
16   Data:            ELFDATA2LSB
17   Type:            ET_DYN
18   Machine:         EM_386
19 ProgramHeaders:
20   - Type:     PT_LOAD
21     FirstSec: .rel.dyn
22     LastSec:  .data
23   - Type:     PT_DYNAMIC
24     VAddr:    0x10
25     FirstSec: .dynamic
26     LastSec:  .dynamic
27 Sections:
28   - Name:            .rel.dyn
29     Type:            SHT_REL
30     Link:            .dynsym
31     Flags:           [ SHF_ALLOC ]
32     AddressAlign:    0x4
33     Relocations:
34       - Offset:          0x30
35         Type:            R_386_RELATIVE
36       - Offset:          0x10
37         Symbol:          foo
38         Type:            R_386_NONE
39   - Name:            .dynamic
40     Type:            SHT_DYNAMIC
41     Flags:           [ SHF_ALLOC ]
42     Link:            .dynstr
43     AddressAlign:    0x4
44     Entries:
45       - Tag:             DT_REL
46         Value:           0x0
47       - Tag:             DT_RELSZ
48         Value:           0x10
49       - Tag:             DT_RELENT
50         Value:           0x8
51       - Tag:             DT_RELCOUNT
52         Value:           0x1
53       - Tag:             DT_NULL
54         Value:           0x0
55   - Name:            .data
56     Type:            SHT_PROGBITS
57     Flags:           [ SHF_WRITE, SHF_ALLOC ]
58     AddressAlign:    0x4
59     Content:         '80110000'
60 DynamicSymbols:
61   - Name:    foo
62     Section: .data