[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / Object / objdump-sectionheaders.test
blob320db8710fcf8ba817e3b1ec368fcad1ab8ac09f
1 # RUN: yaml2obj %s -o %t.elf-x86-64
2 # RUN: llvm-objdump -h %t.elf-x86-64 | FileCheck %s
4 # To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
5 # results in a way that we don't emulate.
7 # CHECK: Sections:
8 # CHECK: Idx Name          Size     VMA              Type
9 # CHECK:   0               00000000 0000000000000000
10 # CHECK:   1 .text         00000026 0000000000000000 TEXT
11 # CHECK:   2 .rodata.str1.1 0000000d 0000000000000026 DATA
12 # CHECK:   3 .note.GNU-stack 00000000 0000000000000033
13 # CHECK:   4 .rela.text    00000000 0000000000000038
14 # CHECK:   5 .symtab       00000018 0000000000000000
15 # CHECK:   6 .strtab       00000001 0000000000000000
16 # CHECK:   7 .shstrtab     00000045 0000000000000000
18 --- !ELF
19 FileHeader:
20   Class:   ELFCLASS64
21   Data:    ELFDATA2LSB
22   Type:    ET_REL
23   Machine: EM_X86_64
24 Sections:
25   - Name:    .text
26     Type:    SHT_PROGBITS
27     Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]
28     Size:    0x26
29   - Name:    .rodata.str1.1
30     Type:    SHT_PROGBITS
31     Flags:   [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ]
32     Address: 0x0000000000000026
33     Size:    0xd
34   - Name:    .note.GNU-stack
35     Type:    SHT_PROGBITS
36     Address: 0x0000000000000033
37   - Name:    .rela.text
38     Type:    SHT_RELA
39     Address: 0x0000000000000038
40     Info:    .text
41     Relocations:
42 Symbols: []