authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-04-08 20:54:54+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-04-08 20:54:54+02:00
log9875ab4ee823b4cbf93fed826eeb03900b2046ff
tree974bb1ddd05ad2835d6b6bb85c130d1098c76956
parentb66fd87a4c9f1d1ec570f204e270f3da4c4e6707

link/elf: actually emit DYN when targetting haiku


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Elf.zig+1-1
...@@ -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),