# link.Elf: fix phdr_gnu_stack_index not included in sortPhdrs · gitcafe/zig

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

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

Visibility: public

Requested revision: 4669269673e0240301699127abb16b3072c5e592

Requested commit: 4669269673e0240301699127abb16b3072c5e592

Commit: 4669269673e0240301699127abb16b3072c5e592

Tree: f41f071ac888c0aebf07bfeea0b213d29d82bdba

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link.Elf: fix phdr_gnu_stack_index not included in sortPhdrs

Adds type safety for program header indexes.

Reduce the amount of state sortPhdrs has access to, helping make the
data dependencies clear.

```

## Parents

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

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