Merge branch 'master' into freestanding_amd64

This commit is contained in:
gingerBill
2022-03-14 11:02:59 +00:00
committed by GitHub
150 changed files with 7091 additions and 3234 deletions

View File

@@ -1325,6 +1325,10 @@ void lb_generate_code(lbGenerator *gen) {
switch (build_context.reloc_mode) {
case RelocMode_Default:
if (build_context.metrics.os == TargetOs_openbsd) {
// Always use PIC for OpenBSD: it defaults to PIE
reloc_mode = LLVMRelocPIC;
}
break;
case RelocMode_Static:
reloc_mode = LLVMRelocStatic;