[llvm-dev] GlobalVariable to image base

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 6 09:06:16 PDT 2016


I don't think there's an easy way for all platforms. Try __executable_start
for ELF, though.

On Sat, Sep 3, 2016 at 7:05 AM, BBLN via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> For x86-win32 we got __ImageBase,
> Is there any *simple* way to create a GlobalVariable pointing to the image
> base on all platforms?
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160906/0a116b40/attachment.html>


More information about the llvm-dev mailing list