diff options
| author | George Rimar <grimar@accesssoftek.com> | 2017-07-11 12:29:07 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2017-07-11 12:29:07 +0000 |
| commit | 0493e436eebfe46ddba73fa34965dcfa3453a443 (patch) | |
| tree | f3028cd07dabfde10fd69f9bbdd7fc73bf39abbd /llvm/test/DebugInfo/invalid-relocations.test | |
| parent | 509d1b2a5ab04ba1296ec7f23d9c350731ab5d70 (diff) | |
| download | bcm5719-llvm-0493e436eebfe46ddba73fa34965dcfa3453a443.tar.gz bcm5719-llvm-0493e436eebfe46ddba73fa34965dcfa3453a443.zip | |
[DWARF] - Add testcase for checking message about broken relocations.
Addresses comments for r306677, which fixed error message itself.
llvm-svn: 307655
Diffstat (limited to 'llvm/test/DebugInfo/invalid-relocations.test')
| -rw-r--r-- | llvm/test/DebugInfo/invalid-relocations.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/invalid-relocations.test b/llvm/test/DebugInfo/invalid-relocations.test new file mode 100644 index 00000000000..2252e1a205c --- /dev/null +++ b/llvm/test/DebugInfo/invalid-relocations.test @@ -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 |

