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

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

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

Visibility: public

Requested revision: 162b92c93ee36ab8c8668cb22f63a298cadd6d38

Requested commit: 162b92c93ee36ab8c8668cb22f63a298cadd6d38

Commit: 162b92c93ee36ab8c8668cb22f63a298cadd6d38

Tree: 0dd519dcb9045ef1dd4317126fac4f4c37b0033d

Author: Michael Dusan

Committer: Andrew Kelley

## 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

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

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