mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
[mips][mc] Fix a crash when disassembling odd sized sections
Corresponding test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20c78ede7e
commit
dbda2aa80b
16
test/tools/llvm-objdump/Mips/disassemble-all.test
Normal file
16
test/tools/llvm-objdump/Mips/disassemble-all.test
Normal file
@ -0,0 +1,16 @@
|
||||
# RUN: yaml2obj %s | llvm-objdump -D -
|
||||
|
||||
# Test that -D does not crash llvm-objdump encounters a section who size is a
|
||||
# not a multiple of the size of an instruction.
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_EXEC
|
||||
Machine: EM_MIPS
|
||||
Sections:
|
||||
- Name: .note.llvm.crash
|
||||
Type: SHT_NOTE
|
||||
Address: 0x0
|
||||
Content: 002E746578
|
Loading…
x
Reference in New Issue
Block a user