mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
[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
This commit is contained in:
parent
c0dfa22e1d
commit
cd7355508d
35
test/DebugInfo/invalid-relocations.test
Normal file
35
test/DebugInfo/invalid-relocations.test
Normal file
@ -0,0 +1,35 @@
|
||||
# RUN: yaml2obj %s > %t.o
|
||||
# RUN: llvm-dwarfdump %t.o 2>&1 | FileCheck %s
|
||||
# CHECK: failed to compute relocation: Unknown
|
||||
|
||||
!ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS32
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_REL
|
||||
Machine: EM_386
|
||||
Sections:
|
||||
- Type: SHT_PROGBITS
|
||||
Name: .text
|
||||
Flags: [ ]
|
||||
AddressAlign: 0x04
|
||||
Content: "0000"
|
||||
- Type: SHT_PROGBITS
|
||||
Name: .debug_info
|
||||
Flags: [ ]
|
||||
AddressAlign: 0x04
|
||||
Content: "0000"
|
||||
- Type: SHT_REL
|
||||
Name: .rel.debug_info
|
||||
Link: .symtab
|
||||
Info: .debug_info
|
||||
Relocations:
|
||||
- Offset: 0
|
||||
Symbol: _start
|
||||
Type: 0xFF
|
||||
Symbols:
|
||||
Global:
|
||||
- Name: _start
|
||||
Type: STT_FUNC
|
||||
Section: .text
|
||||
Value: 0x0
|
Loading…
x
Reference in New Issue
Block a user