| ... | ... | @@ -2508,7 +2508,7 @@ fn linkWithLLD(self: *Elf, arena: Allocator, prog_node: *std.Progress.Node) !voi |
| 2508 | 2508 | try argv.append("-pie"); |
| 2509 | 2509 | } |
| 2510 | 2510 | |
| 2511 | | if (is_dyn_lib and target.os.tag == .netbsd) { |
| 2511 | if (is_exe_or_dyn_lib and target.os.tag == .netbsd) { |
| 2512 | 2512 | // Add options to produce shared objects with only 2 PT_LOAD segments. |
| 2513 | 2513 | // NetBSD expects 2 PT_LOAD segments in a shared object, otherwise |
| 2514 | 2514 | // ld.elf_so fails loading dynamic libraries with "not found" error. |