# overhaul elf csu \(c-runtime startup\) logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 0f2612037784570930dea433afef559ff6161b21

Requested commit: 0f2612037784570930dea433afef559ff6161b21

Commit: 0f2612037784570930dea433afef559ff6161b21

Tree: d60fbc768c7460ac6874ed937eac38f8fe345842

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
overhaul elf csu (c-runtime startup) logic

- more support for linux, android, freebsd, netbsd, openbsd, dragonfly
- centralize musl utils; musl logic is no longer intertwined with csu
- fix musl compilation to build crti/crtn for full archs list
- fix openbsd to support `zig build-lib -dynamic`
- initial dragonfly linking success (with a warning)

ancillary:

- fix emutls (openbsd) tests to use `try`

```

## Parents

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

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