| ... | @@ -601,7 +601,10 @@ fn outputType(elf_file: *Elf) u2 { | ... | @@ -601,7 +601,10 @@ fn outputType(elf_file: *Elf) u2 { |
| 601 | return switch (elf_file.base.comp.config.output_mode) { | 601 | return switch (elf_file.base.comp.config.output_mode) { |
| 602 | .Obj => unreachable, | 602 | .Obj => unreachable, |
| 603 | .Lib => 0, | 603 | .Lib => 0, |
| 604 | .Exe => if (comp.config.pie) 1 else 2, | 604 | .Exe => switch (elf_file.getTarget().os.tag) { |
| | 605 | .haiku => 0, |
| | 606 | else => if (comp.config.pie) 1 else 2, |
| | 607 | }, |
| 605 | }; | 608 | }; |
| 606 | } | 609 | } |
| 607 | | 610 | |