mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
link/elf: actually emit DYN when targetting haiku
This commit is contained in:
parent
b66fd87a4c
commit
9875ab4ee8
@ -2928,7 +2928,7 @@ pub fn writeElfHeader(self: *Elf) !void {
|
||||
const output_mode = comp.config.output_mode;
|
||||
const link_mode = comp.config.link_mode;
|
||||
const elf_type: elf.ET = switch (output_mode) {
|
||||
.Exe => if (comp.config.pie) .DYN else .EXEC,
|
||||
.Exe => if (comp.config.pie or target.os.tag == .haiku) .DYN else .EXEC,
|
||||
.Obj => .REL,
|
||||
.Lib => switch (link_mode) {
|
||||
.static => @as(elf.ET, .REL),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user