summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorEugene Zemtsov <ezemtsov@google.com>2017-08-30 18:36:48 +0000
committerEugene Zemtsov <ezemtsov@google.com>2017-08-30 18:36:48 +0000
commit37b1d7b36fa144b0733dfc1659defe80cf384b15 (patch)
tree579931b0bc9b890cf2748c96d87d15f8daae8645 /llvm/lib/CodeGen/TargetPassConfig.cpp
parentd878ca8487dca7d749ab298520b9e6cb83410aec (diff)
downloadbcm5719-llvm-37b1d7b36fa144b0733dfc1659defe80cf384b15.tar.gz
bcm5719-llvm-37b1d7b36fa144b0733dfc1659defe80cf384b15.zip
Now a ppc64le binary is correctly detected:
(lldb) target create "tst" Current executable set to 'tst' (powerpc64le). (lldb) disassemble -n main tst`main: tst[0x7b0] <+0>: addis 2, 12, 2 tst[0x7b4] <+4>: addi 2, 2, 30544 tst[0x7b8] <+8>: mflr 0 Wihout the patch, the endianess was incorrect: (lldb) target create "tst" Current executable set to 'tst' (powerpc64). (lldb) disassemble -n main tst`main: tst[0x7b0] <+0>: .long 0x02004c3c ; unknown opcode tst[0x7b4] <+4>: rlwimi 23, 3, 8, 8, 28 tst[0x7b8] <+8>: lhzu 16, 2172(2) tst[0x7bc] <+12>: .long 0x100001f8 ; unknown opcode Simple binary used is identified as: $ file tst tst: ELF 64-bit LSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=17a8fa2b24ce2837ba6625fabb34e6b29c6c5db7, not stripped Patch by Gustavo Serra Scalet <gustavo.scalet@eldorado.org.br> Differential Revision: https://reviews.llvm.org/D36804 llvm-svn: 312151
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud