Displaying 1 result from an estimated 1 matches for "d523b6".
2018 Sep 22
2
Quick question: How to BuildMI mov64mi32 arbitrary MMB address to memory
....addReg(X86::RSP) // Base
.addImm(0x8) // Disp
.addMBB(my_target_mbb); // Source
So far I have looked into the BuildMI API of LLVM and the only one that
looks relevant is addMBB. While my LLVM pass compiles, my linker complains
(and note that I am compiling with -fPIC):
1)
/usr/bin/ld: /tmp/foo-d523b6.o: Unknown temporary symbol
or 2)
/usr/bin/ld: /tmp/foo-d523b6.o: relocation R_X86_64_32S against `.text' can
not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
Any suggestions? Much appreciated for taking a look!...