OSDN Git Service

[llvm-objdump] Properly print MachO aarch64 addend relocations
authorMartin Storsjo <martin@martin.st>
Thu, 13 Jul 2017 17:03:02 +0000 (17:03 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 13 Jul 2017 17:03:02 +0000 (17:03 +0000)
commit5dbda1ece15293d15445a80d035ed7dc39a17373
treeffed9bfda82c6c035dd8bcf2a484f5243217cbb7
parentd7b55ebbd0bcf951e450f30b1fb7be725e01e477
[llvm-objdump] Properly print MachO aarch64 addend relocations

Previously such relocations fell into the last case for local
symbols, using the relocation addend as symbol index, leading to
a crash.

Differential Revision: https://reviews.llvm.org/D35239

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307927 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/AArch64/Inputs/reloc-addend.obj.macho-aarch64 [new file with mode: 0644]
test/tools/llvm-objdump/AArch64/macho-reloc-addend.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp