llvm.org GIT mirror llvm / cd73555
[DWARF] - Add testcase for checking message about broken relocations. Addresses comments for r306677, which fixed error message itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307655 91177308-0d34-0410-b5e6-96231b3b80d8 George Rimar 2 years ago
1 changed file(s) with 35 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # RUN: yaml2obj %s > %t.o
1 # RUN: llvm-dwarfdump %t.o 2>&1 | FileCheck %s
2 # CHECK: failed to compute relocation: Unknown
3
4 !ELF
5 FileHeader:
6 Class: ELFCLASS32
7 Data: ELFDATA2LSB
8 Type: ET_REL
9 Machine: EM_386
10 Sections:
11 - Type: SHT_PROGBITS
12 Name: .text
13 Flags: [ ]
14 AddressAlign: 0x04
15 Content: "0000"
16 - Type: SHT_PROGBITS
17 Name: .debug_info
18 Flags: [ ]
19 AddressAlign: 0x04
20 Content: "0000"
21 - Type: SHT_REL
22 Name: .rel.debug_info
23 Link: .symtab
24 Info: .debug_info
25 Relocations:
26 - Offset: 0
27 Symbol: _start
28 Type: 0xFF
29 Symbols:
30 Global:
31 - Name: _start
32 Type: STT_FUNC
33 Section: .text
34 Value: 0x0