| ... | @@ -2928,7 +2928,7 @@ pub fn writeElfHeader(self: *Elf) !void { | ... | @@ -2928,7 +2928,7 @@ pub fn writeElfHeader(self: *Elf) !void { |
| 2928 | const output_mode = comp.config.output_mode; | 2928 | const output_mode = comp.config.output_mode; |
| 2929 | const link_mode = comp.config.link_mode; | 2929 | const link_mode = comp.config.link_mode; |
| 2930 | const elf_type: elf.ET = switch (output_mode) { | 2930 | const elf_type: elf.ET = switch (output_mode) { |
| 2931 | .Exe => if (comp.config.pie) .DYN else .EXEC, | 2931 | .Exe => if (comp.config.pie or target.os.tag == .haiku) .DYN else .EXEC, |
| 2932 | .Obj => .REL, | 2932 | .Obj => .REL, |
| 2933 | .Lib => switch (link_mode) { | 2933 | .Lib => switch (link_mode) { |
| 2934 | .static => @as(elf.ET, .REL), | 2934 | .static => @as(elf.ET, .REL), |