# stage2: decouple codegen.zig from ELF · gitcafe/zig

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

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

Visibility: public

Requested revision: 89b6c47e042b343fba754ed8f39efa1b385093bb

Requested commit: 89b6c47e042b343fba754ed8f39efa1b385093bb

Commit: 89b6c47e042b343fba754ed8f39efa1b385093bb

Tree: a27e6ef0c793e496877cb21cfddc2b3da5ddbb56

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: decouple codegen.zig from ELF

See #6113 for an alternate way of doing this that we didn't end up
following.

Closes #6079.

I also took the opportunity here to extract C.zig and Elf.zig from
link.zig.

```

## Parents

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

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