LLVM: Dynamic Library Support
|Reported by:||dterei||Owned by:||dterei|
|Keywords:||Cc:||william.knop.nospam@…, bgamari@…, angerman|
|Type of failure:||Runtime crash||Test Case:|
|Related Tickets:||Differential Rev(s):|
Description (last modified by )
dynamic library status:
* Supported: Linux 64bit, Mac OSX 64bit * Unsupported: Linux 32bit, Mac OSX 32bit, Windows 32bit
The LLVM backend doesn't support dynamic libraries at the moment.
LLC supports a flag called '-relocation-mode' that can be used to support this, it takes the following options:
default - let the target choose. static - static code. pic - PIC code. dynamic-no-pic - Dynamic references but static code
This roughly corresponds to GHC -fPIC, and -dynamic flags.
Linux: Simply adding the correct flag to LLC seems to work fine. Mac OSX, Windows: Adding the correct flag doesn't work at all, all programs segfault.
Change History (34)
comment:6 follow-up: 8 Changed 6 years ago by
|Summary:||LLVM: Dynamic Library Support → LLVM: Dynamic Library Support1|
comment:7 Changed 6 years ago by
|Summary:||LLVM: Dynamic Library Support1 → LLVM: Dynamic Library Support|