# wasm-linker: emit 'data count' & segment flags · gitcafe/zig

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

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

Visibility: public

Requested revision: 00af3a79aede098c60eeff38ad72fa399b9d3ccf

Requested commit: 00af3a79aede098c60eeff38ad72fa399b9d3ccf

Commit: 00af3a79aede098c60eeff38ad72fa399b9d3ccf

Tree: 17badac16ab8b35d7f1c6217a4aaf7cadd672ba5

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: emit 'data count' & segment flags

When linking with shared-memory enabled, we must ensure to emit
the "data count" section as well as emit the correct segment flags
to tell the runtime/loader that each segment is passive. This is
required as we don't emit the offsets for such segments but instead
initialize each segment (for each thread) during runtime.

```

## Parents

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

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