| ... | ... | @@ -989,7 +989,7 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) { |
| 989 | 989 | } |
| 990 | 990 | |
| 991 | 991 | bool target_allows_addr_zero(const ZigTarget *target) { |
| 992 | | return target->os == OsFreestanding; |
| 992 | return target->os == OsFreestanding || target->os == OsUefi; |
| 993 | 993 | } |
| 994 | 994 | |
| 995 | 995 | const char *target_o_file_ext(const ZigTarget *target) { |
| ... | ... | @@ -1414,12 +1414,12 @@ bool target_supports_fpic(const ZigTarget *target) { |
| 1414 | 1414 | } |
| 1415 | 1415 | |
| 1416 | 1416 | bool target_supports_stack_probing(const ZigTarget *target) { |
| 1417 | | return target->os != OsWindows && (target->arch == ZigLLVM_x86 || target->arch == ZigLLVM_x86_64); |
| 1417 | return target->os != OsWindows && target->os != OsUefi && (target->arch == ZigLLVM_x86 || target->arch == ZigLLVM_x86_64); |
| 1418 | 1418 | } |
| 1419 | 1419 | |
| 1420 | 1420 | bool target_requires_pic(const ZigTarget *target, bool linking_libc) { |
| 1421 | 1421 | // This function returns whether non-pic code is completely invalid on the given target. |
| 1422 | | return target->os == OsWindows || target_os_requires_libc(target->os) || |
| 1422 | return target->os == OsWindows || target->os == OsUefi || target_os_requires_libc(target->os) || |
| 1423 | 1423 | (linking_libc && target_is_glibc(target)); |
| 1424 | 1424 | } |
| 1425 | 1425 | |