# elf: preallocate offsets for PT_PHDR and PT_LOAD \(empty\) segment · gitcafe/zig

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

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

Visibility: public

Requested revision: c0e9b849974cdbc93053919f54f0cf3830243572

Requested commit: c0e9b849974cdbc93053919f54f0cf3830243572

Commit: c0e9b849974cdbc93053919f54f0cf3830243572

Tree: 60ee1c5646280243901d7440719fef34b5b944b5

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
elf: preallocate offsets for PT_PHDR and PT_LOAD (empty) segment

Otherwise, we will be using `undefined` as the offset to allocate
remaining phdrs and shdrs.

```

## Parents

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

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