# coff: write base relocations for the dynamic linker · gitcafe/zig

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

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

Visibility: public

Requested revision: b45387f20e3abad052a11df55d2cd7bab099e5c3

Requested commit: b45387f20e3abad052a11df55d2cd7bab099e5c3

Commit: b45387f20e3abad052a11df55d2cd7bab099e5c3

Tree: 4a611373e563affa1ee1f0d9b9329d9a72a1a743

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
coff: write base relocations for the dynamic linker

This means we can request ASLR on by default as other COFF linkers
do. Currently, we write the base relocations in bulk, however,
given that there is a mechanism for padding in place in PE/COFF
I believe there might be room for making it an incremental operation
(write base relocation whenever we add/update a pointer that would
require it).

```

## Parents

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

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