[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:
Simon Dardis 2017-02-24 10:51:27 +00:00
parent 20c78ede7e
commit dbda2aa80b

View 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