Hi Am,
I think you're conflating two issues here - LLVM bitcode is not loadable or
runnable, at all.
It needs to be generated into native code before it can be run or loaded -
of course if you use the -fPIC option the resulting output object will be
relocatable - you would then use your native linker (GNU LD or Gold) in the
same way as normal.
You can't load bitcode files by themselves.
Cheers,
James
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Am Ro
Sent: 21 December 2011 14:42
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Position Dependent Loading in LLVM Modules
Hello All,
Does LLVM even support position dependent loading in bitcode files?
For example, how would I go about loading a module at a specific
address without a custom linker?
Thanks
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev