# elf: pad out file to the required size when init data · gitcafe/zig

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

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

Visibility: public

Requested revision: 57357c43e3b56fd636cd08af591c50a08223b654

Requested commit: 57357c43e3b56fd636cd08af591c50a08223b654

Commit: 57357c43e3b56fd636cd08af591c50a08223b654

Tree: 5bb2099de0368f3ef2a67cc8ee0226d6e2d2218f

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
elf: pad out file to the required size when init data

We need to pad out the file to the required maximum size equal the
final section's offset plus the section's size. We only need to
this when populating initial metadata and only when section header
was updated.

```

## Parents

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

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