# wasm-object: Use given allocator rather than arena · gitcafe/zig

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

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

Visibility: public

Requested revision: 49f01c0a0cd510437f6f2d13d5de3e722f48cc3d

Requested commit: 49f01c0a0cd510437f6f2d13d5de3e722f48cc3d

Commit: 49f01c0a0cd510437f6f2d13d5de3e722f48cc3d

Tree: 35481c8603ed3c0dc69aef5621ea524cd09670af

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm-object: Use given allocator rather than arena

This is preliminary work for string interning in the wasm linker.
Using an arena would defeat the purpose of de-duplicating strings as we wouldn't be able to free memory
of duplicated strings.
This change also means we can simplify wasm binary parsing, by creating a general purpose parser that
parses the binary into its sections, but untyped. Doing this, allows us to re-use the base of that, for
object file, but also debug info parsing.

```

## Parents

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

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