# coff: due to ASLR we need to dupe the code for relocating · gitcafe/zig

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

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

Visibility: public

Requested revision: ee0c4457657523e218c1e211c447d3e196575ddc

Requested commit: ee0c4457657523e218c1e211c447d3e196575ddc

Commit: ee0c4457657523e218c1e211c447d3e196575ddc

Tree: 51c14da38f52ac7a0170485747d8b4f7bab37d95

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
coff: due to ASLR we need to dupe the code for relocating

In addition, we need to be careful not to mark the relocations as
resolved prematurely as then we are risking malforming the binary
as we need to resolve the relocs twice: once for in-memory writes,
and once for in-file updates.

```

## Parents

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

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