# link.Dwarf: Fix function alignment calculation to match the rest of the linker\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 43344833c52dad441475c5eaceb257f524980c60

Requested commit: 43344833c52dad441475c5eaceb257f524980c60

Commit: 43344833c52dad441475c5eaceb257f524980c60

Tree: 89ed665b78a34926d43bc902060de1c0fc88b6d1

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
link.Dwarf: Fix function alignment calculation to match the rest of the linker.

In particular, for user-specified alignment values, we need to do
max(user_align, minFunctionAlignment()) to respect the ABI minimum.

```

## Parents

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

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