# stage2: add 4 new linker flags for WebAssembly · gitcafe/zig

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

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

Visibility: public

Requested revision: d2cdfb949033cfd463cdd4ef1bbf93f94d4d190a

Requested commit: d2cdfb949033cfd463cdd4ef1bbf93f94d4d190a

Commit: d2cdfb949033cfd463cdd4ef1bbf93f94d4d190a

Tree: 6f329fbd1402f5776dc0b8f654452a8ae1471956

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: add 4 new linker flags for WebAssembly

--import-memory          import memory from the environment
--initial-memory=[bytes] initial size of the linear memory
--max-memory=[bytes]     maximum size of the linear memory
--global-base=[addr]     where to start to place global data

See #8633

```

## Parents

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

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