# link/wasm: Sort data segments · gitcafe/zig

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

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

Visibility: public

Requested revision: 140bac6395610a3b9e5d5f92e2b366a27f6dcdc8

Requested commit: 140bac6395610a3b9e5d5f92e2b366a27f6dcdc8

Commit: 140bac6395610a3b9e5d5f92e2b366a27f6dcdc8

Tree: 6ff6d50d21b32c04d47821b1c0695ce548c46704

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
link/wasm: Sort data segments

We now ensure the "bss" section is last, which allows us to not
emit this section and let the runtime initialize the memory with 0's instead.
This allows for smaller binaries.
The order of the other segments is arbitrary and does not matter, this may
change in the future.

```

## Parents

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

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