# wasm-linker: Do not merge data segments for obj · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b0431a8d3933a46fecba2bf064bf45df54a111d

Requested commit: 2b0431a8d3933a46fecba2bf064bf45df54a111d

Commit: 2b0431a8d3933a46fecba2bf064bf45df54a111d

Tree: 1ec5e1afa83d482e751e603488e8bf19cc7fa8bc

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-linker: Do not merge data segments for obj

When creating a relocatable object file, we do no longer perform the following actions:
- Merge data segments
- Calculate stack size
- Relocations

We now also make the stack pointer symbol `undefined` for this use case as well as add the symbol
as an import.

```

## Parents

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

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