mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 18:13:19 +00:00
Elf: fix missing dynrelocs on haiku
This commit is contained in:
parent
de68a3ad43
commit
4daeffab4a
@ -601,7 +601,10 @@ fn outputType(elf_file: *Elf) u2 {
|
||||
return switch (elf_file.base.comp.config.output_mode) {
|
||||
.Obj => unreachable,
|
||||
.Lib => 0,
|
||||
.Exe => if (comp.config.pie) 1 else 2,
|
||||
.Exe => switch (elf_file.getTarget().os.tag) {
|
||||
.haiku => 0,
|
||||
else => if (comp.config.pie) 1 else 2,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user