Change to DynamicNoPic on PIC none

This commit is contained in:
Christoffer Lerno
2021-06-28 10:17:58 +02:00
parent db1261e197
commit b7ef7f9f06

View File

@@ -1061,7 +1061,7 @@ void *llvm_target_machine_create(void)
else
{
assert(platform_target.pic == PIC_NONE);
reloc_mode = LLVMRelocStatic;
reloc_mode = LLVMRelocDynamicNoPic;
}
void *result = LLVMCreateTargetMachine(target, platform_target.target_triple,