# link.Elf: swap order of GOT and text program headers · gitcafe/zig

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

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

Visibility: public

Requested revision: 8e7b1a74ac4568a2b806026f210ae59e52d2768d

Requested commit: 8e7b1a74ac4568a2b806026f210ae59e52d2768d

Commit: 8e7b1a74ac4568a2b806026f210ae59e52d2768d

Tree: 9b7571d633f00a4ffcb72518a3792f4ef1254cb6

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link.Elf: swap order of GOT and text program headers

This makes Valgrind happier because it results in the program headers
being sorted by VirtAddr in the ELF file.

```

## Parents

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

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