| ... | @@ -150,6 +150,10 @@ static const char *getLDMOption(const ZigTarget *t) { | ... | @@ -150,6 +150,10 @@ static const char *getLDMOption(const ZigTarget *t) { |
| 150 | if (t->env_type == ZigLLVM_GNUX32) { | 150 | if (t->env_type == ZigLLVM_GNUX32) { |
| 151 | return "elf32_x86_64"; | 151 | return "elf32_x86_64"; |
| 152 | } | 152 | } |
| | 153 | // Any target elf will use the freebsd osabi if suffixed with "_fbsd". |
| | 154 | if (t->os == OsFreeBSD) { |
| | 155 | return "elf_x86_64_fbsd"; |
| | 156 | } |
| 153 | return "elf_x86_64"; | 157 | return "elf_x86_64"; |
| 154 | default: | 158 | default: |
| 155 | zig_unreachable(); | 159 | zig_unreachable(); |