llvm/test/tools/llvm-objdump/X86/truncated-section.test
Tim Northover 323f7893f4 llvm-objdump: handle stubbed and malformed dylibs better
We were quite happy to read past the end of the valid section data when
disassembling. Instead we entirely skip stub dylibs, and tell the user what's
happened if their section only has partial data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275487 91177308-0d34-0410-b5e6-96231b3b80d8
2016-07-14 22:13:32 +00:00

8 lines
196 B
Plaintext

RUN: llvm-objdump -macho -d %p/Inputs/truncated-section.dylib.macho-x86_64 | FileCheck %s
CHECK: _func:
CHECK: retq
CHECK: retq
CHECK: section data ends, _func2 lies outside valid range