OSDN Git Service

Android: fix a possible building error
[android-x86/external-llvm.git] / test / DebugInfo / invalid-relocations.test
1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-dwarfdump %t.o 2>&1 | FileCheck %s
3 # CHECK: failed to compute relocation: Unknown
4
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS32
8   Data:            ELFDATA2LSB
9   Type:            ET_REL
10   Machine:         EM_386
11 Sections:
12   - Type:            SHT_PROGBITS
13     Name:            .text
14     Flags:           [ ]
15     AddressAlign:    0x04
16     Content:         "0000"
17   - Type:            SHT_PROGBITS
18     Name:            .debug_info
19     Flags:           [ ]
20     AddressAlign:    0x04
21     Content:         "0000"
22   - Type:            SHT_REL
23     Name:            .rel.debug_info
24     Link:            .symtab
25     Info:            .debug_info
26     Relocations:
27       - Offset:          0
28         Symbol:          _start
29         Type:            0xFF
30 Symbols:
31   Global:
32     - Name:     _start
33       Type:     STT_FUNC
34       Section:  .text
35       Value:    0x0