mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-19 16:42:33 +00:00
[no-plt] enable no-plt behavior on linux arm64 and amd64 targets
This commit is contained in:
@@ -59,6 +59,12 @@ gb_internal WORKER_TASK_PROC(lb_init_module_worker_proc) {
|
||||
m->ctx = LLVMContextCreate();
|
||||
m->mod = LLVMModuleCreateWithNameInContext(m->module_name, m->ctx);
|
||||
// m->debug_builder = nullptr;
|
||||
if (build_context.no_plt) {
|
||||
LLVMAddModuleFlag(m->mod,
|
||||
LLVMModuleFlagBehaviorWarning,
|
||||
"RtLibUseGOT", 11,
|
||||
LLVMValueAsMetadata(LLVMConstInt(LLVMInt32TypeInContext(m->ctx), 1, true)));
|
||||
}
|
||||
if (build_context.ODIN_DEBUG) {
|
||||
enum {DEBUG_METADATA_VERSION = 3};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user