0

I am using llvm-link to link LLVM bitcode files, but in my source code I also want to use a function from a shared library file that I created. Now, how do I go about linking that shared library with llvm-link? If I can't do that, what are the other options to use the function from my shared library.

The shared library I'm talking about was compiled with gcc. The option to recompile it with LLVM is out of question, because I'm using some SSE4.2 intrinsics in it, which my version of LLVM can't generate code for.

0

1 Answer 1

0

llvm-link is only used for linking together LLVM bitcode files. If you want to link those with a shared library, you're going to have to compile your bitcode to an object file and then link it with a regular linker.

More information about llvm-link and linking with LLVM bitcode in general is found here:

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.