Hello, use command : opt -load ../Release+Asserts/XX.o -XX <packetbuf.bc> /dev/null then I got the error by use the XX.o in the LLVM pass directory: Error opening "../Release+Asserts/XX.o" only ET_DYN and ET_EXEC can be loaded -load request ignored. I got another error by use the XX.o in the LLVM src directory $LLVM_SRC/Release+Asserts/lib/XX.o: Error opening '../../Release+Asserts/lib/XX.so': ../../Release+Asserts/lib/XX.so: undefined symbol: _ZN4llvm18EQTDDataStructures2IDE -load request ignored. I installed LLVM-3.3 in ubuntu 12.04.5. there are not errors when I make the LLVM pass. Anybody can help me? why I got these errors? best regards, zhaoqian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150731/01a5b1a4/attachment.html>
Krzysztof Parzyszek
2015-Jul-31 19:12 UTC
[LLVMdev] error open a share library generated by a LLVM pass
On 7/30/2015 8:06 PM, Q Z wrote:> > I got another error by use the XX.o in the LLVM src directory > $LLVM_SRC/Release+Asserts/lib/XX.o: > Error opening '../../Release+Asserts/lib/XX.so': > ../../Release+Asserts/lib/XX.so: undefined symbol: > _ZN4llvm18EQTDDataStructures2IDE > -load request ignored.That mangled name refers to llvm::EQTDDataStructures::ID. Does your library define it? -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Seemingly Similar Threads
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- Why -pie option force LLD to output shared obj file type, not executable?
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- testers sought for script to interpret ELF/klibc executables