# link.Coff: Basic support for \`/Brepro\` in the self-hosted linker\. · gitcafe/zig

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

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

Visibility: public

Requested revision: c15755092821c5c27727ebf416689084eab5b73e

Requested commit: c15755092821c5c27727ebf416689084eab5b73e

Commit: c15755092821c5c27727ebf416689084eab5b73e

Tree: afc1104bb5d008af0b39309e19ff46f2ef30058d

Author: Alex Rønne Petersen

Committer: Jakub Konka

## Message

```
link.Coff: Basic support for `/Brepro` in the self-hosted linker.

Just keep things simple and zero the timestamp. It's not obvious that there's
any real benefit to adding complexity and harming performance by computing a
hash of the whole file for the timestamp value.

See:

* https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#general-concepts
* https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#debug-type

In the future, we should at least add an empty `IMAGE_DEBUG_TYPE_REPRO` entry to
the debug data directory for this case, but I didn't want to do too much surgery
right now since it's early days for COFF support in the self-hosted linker.

```

## Parents

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

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