# netbsd: add args to limit number of PT_LOAD segs · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/79a4da14ad137aa52a32f9113982b706d8c5fe8b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 79a4da14ad137aa52a32f9113982b706d8c5fe8b

Requested commit: 79a4da14ad137aa52a32f9113982b706d8c5fe8b

Commit: 79a4da14ad137aa52a32f9113982b706d8c5fe8b

Tree: f27b7528a30331c0e6f1cb3ff0a3a68f3b1776bc

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
netbsd: add args to limit number of PT_LOAD segs

NetBSD expects 2 PT_LOAD segments in a shared object, otherwise
ld.elf_so fails to load, emitting a general "not found" error.

Workaround issue by adding args `--no-rosegment` and `-znorelro`.

see #9109

```

## Parents

- [e125ead2b1549eff5bd20c3fb640c9480a9c9aeb](https://git.cafe/gitcafe/zig/commit/e125ead2b1549eff5bd20c3fb640c9480a9c9aeb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/79a4da14ad137aa52a32f9113982b706d8c5fe8b?format=markdown)
