Unable to raise arm binary containing an array #170
Labels
ARM
Relates to raising ARM binaries
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I have successfully been able to crosscompile simple c files to arm with arm-linux-gnueabi-gcc, and raising those binaries using mctoll. However now that I try a file containing the following lines with an array:
I get the following error when using the same compiler (arm-linux-gnueabi-gcc):
llvm-mctoll: /home/mctoll/llvm-project/llvm/tools/llvm-mctoll/ARM/ARMMIRevising.cpp:500: void ARMMIRevising::addressPCRelativeData(llvm::MachineInstr&): Assertion `GlobVal && "A not addressed pc-relative data!"' failed.
When I looked through some of the mctoll tests in the repository I saw some arrays being declared and used so I thought raising those instructions wouldn't be a problem, so I imagine there is something I should do differently to fix my issue.
I also tried using a different compiler, and with the compiler arm-linux-gnueabihf-gcc I got a different error:
**** Warning: Failed to decode instruction
598: 01 d0 ff f7
llvm-mctoll: /home/mctoll/llvm-project/llvm/tools/llvm-mctoll/ARM/DAG/DAGRaisingInfo.cpp:23: llvm::Value* DAGRaisingInfo::getRealValue(llvm::SDNode*): Assertion `NPMap[Node] != nullptr && "Cannot find the corresponding node proprety!"' failed.
The text was updated successfully, but these errors were encountered: